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 18:10
Afull journal bearing has a journal diameter of 27 mm, with a unilateral tolerance of -0.028 mm. the bushing bore has a diameter of 27.028 mm and a unilateral tolerance of 0.04 mm. the l/d ratio is 0.5. the load is 1.3 kn and the journal runs at 1200 rev/min. if the average viscosity is 50 mpa-s, find the minimum film thickness, the power loss, and the side flow for the minimum clearance assembly.
Answers: 1
question
Engineering, 04.07.2019 18:10
Different types of steels contain different elements that alter the characteristics of the steel. for each of the following elements, explain what the element does when alloyed with steel.
Answers: 2
question
Engineering, 04.07.2019 18:10
True or false (explain) (110)[111] is a slip system in bcc metals . the {111} family in fcc contains 8 planes. resolved shear stress (rss) in single crystals is just related to the applied stress. critical resolved shear stress (crss) in single crystal metals is direct proportional to the number of defects in the structure
Answers: 2
question
Engineering, 04.07.2019 18:10
Awall of 0.5m thickness is to be constructed from a material which has average thermal conductivity of 1.4 w/mk. the wall is to be insulated with a material having an average thermal conductivity of 0.35 w/mk so that heat loss per square meter shall not exceed 1450 w. assume inner wall surface temperature of 1200°c and outer surface temperature of the insulation to be 15°c. calculate the thickness of insulation required.
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
Mathematics, 15.01.2021 23:40
question
Mathematics, 15.01.2021 23:40
question
Chemistry, 15.01.2021 23:40
question
Mathematics, 15.01.2021 23:40
Questions on the website: 13722359