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

Other questions on the subject: Engineering

image
Engineering, 03.07.2019 14:10, aliceohern
The y form of iron is known as: a) ferrite b) cementite c) perlite d) austenite
Answers: 3
image
Engineering, 04.07.2019 18:20, myahlit84
Inadequate stores control is not an obstacle to effective work order system. (clo4) a)-true b)-false
Answers: 3
image
Engineering, 04.07.2019 19:20, anggar20
Air enters a horizontal, constant-diameter heating duct operating at steady state at 290 k, 1 bar, with a volumetric flow rate of 0.25 m°/s, and exits at 325 k, 0.95 bar. the flow area is 0.04 m2. assuming the ideal gas model with k = 1.4 for the air, determine (a) the velocity at the inlet and exit, each in m/s, and (c) the rate of heat transfer, in kw flow rate, in kg/s, (b) the mass kg 0.3
Answers: 2
image
Engineering, 04.07.2019 19:20, carterdaw
Aseries piping system conveys methyl alcohol. the system consists of 70 m of 1- nominal pipe follow by 50 m of 2-nominal pipe, both schedule 40 commercial steel. the 1-nominal pipe contains 3 90° elbows (regular) anda fully open gate valve, all threaded. the pressure drop through the system is 150 kpa. determine the volume flow rate through the system that is horizontally laid.
Answers: 1
You know the right answer?
Using the Die class created in Chapter 4, create an application that implements a simple dice game t...

Questions in other subjects:

Konu
Mathematics, 30.06.2019 22:30