subject
Engineering, 07.03.2020 03:04 jetblackcap

Using the Die class created in Chapter 4, create an application that implements a simple dice game that a user can play against the computer. The object of the game is to be the first to score 100 points after repeatedly rolling 2 dice. The program asks the user for a number between 2(the lowest possible total from rolling 2 dice) and 12 (the highest total possible). The user "rolls" 2 dice up to 3 times. If the number chosen by the user comes up, the user wins 5 points. If the number does not come up within 3 rolls, the computer wins 3 points. The program should display weather the user or computer wins the game.

ansver
Answers: 2

Another question on Engineering

question
Engineering, 04.07.2019 12:10
On a average work day more than work place firs are reorted
Answers: 1
question
Engineering, 04.07.2019 18:10
Assuming compressible flow of air and that the measurements are done at flagstaff a pitot static tube that gives the difference of total and static pressure measures 0.35 m of mercury. what is the velocity of air? assume the temperature to be 300k. (submit your excel or matlab calculation sheet)
Answers: 1
question
Engineering, 04.07.2019 18:10
Which of the following ziegler nichols tuning methods the response of the controller to a step input should exhibit an s-shaped curve? a)-open loop mode b)-closed loop mode c)-both modes (open & closed) d)-none of the modes (open & closed)
Answers: 3
question
Engineering, 04.07.2019 19:20
Apure substance is a)-mixture of various chemical elements or compounds b)-substance that has a fixed chemical composition throughout c)-mixture that is homogeneous (such as air) d)-all the answers
Answers: 3
You know the right answer?
Using the Die class created in Chapter 4, create an application that implements a simple dice game t...
Questions
question
History, 19.09.2019 08:10
question
Biology, 19.09.2019 08:10
question
Chemistry, 19.09.2019 08:10
Questions on the website: 13722361