subject
Engineering, 28.10.2019 22:31 coolstacie

Simulate a game of throwing a 6-sided die. the user is the player and the program prompts the user to throw a die. if first throw yields 1 or 5, the user loses. if first throw yields 2 or 4 the user wins. if the first throw yields 3, its a "no result/ draw".if first throw yields 6, the user gets another throw. in the second throw -if the throw yields 1 or 5, the user losesif the throw yields 2 or 4 the user wins. if the throw yields 3 or 6, its a "no result/ draw".

ansver
Answers: 3

Another question on Engineering

question
Engineering, 03.07.2019 14:10
Amass of 1.5 kg of air at 120 kpa and 24°c is contained in a gas-tight, frictionless piston-cylinder device. the air is now compressed to a final pressure of 720 kpa. during the process, heat is transferred from the air such that the temperature inside the cylinder remains constant. calculate the boundary work input during this process.
Answers: 2
question
Engineering, 04.07.2019 18:10
Asingle-geared blanking press has a stroke of 200 mm and a rated capacity of 320 kn. a cam driven ram is assumed to be capable of delivering the full press load at constant force during the last 15 percent of a constant-velocity stroke. the camshaft has an average speed of 90 rev/min and is geared to the flywheel shaft at a 6: 1 ratio. the total work done is to include an allowance of 16 percent for friction a) estimate the maximum energy fluctuation b) find the rim weight for an effective diameter of 1.2 m and a coefficient of speed fluctuation of 0.10
Answers: 1
question
Engineering, 04.07.2019 18:20
Amixture of slurry and mud is to be pumped through a horizontal pipe of diameter 500 mm. the fluid behaves as a bingham plastic with a yield stress of 30 pa and viscosity 0.04 pa.s. describe the effects of the shear stress through a transverse section of the pipe by plotting the variation in shear stress and velocity profile: (i) just before the slurry starts to move (ii) as the slurry flows when the pressure gradient is double that in part (i)
Answers: 3
question
Engineering, 04.07.2019 19:10
10 kg of co2 is initially contained at 400 kpa and 300 k. the gas constant for carbon dioxide is 189 j/lkg k) and has a specific heat ratio, k, of 1.289. isentropic expansion then occurs until the pressure is 200 kpa. a) determine the initial volume of co2 in m. b) determine the final temperature in k. c) determine the work done by the system during the expansion kl.
Answers: 2
You know the right answer?
Simulate a game of throwing a 6-sided die. the user is the player and the program prompts the user t...
Questions
question
Mathematics, 20.09.2021 07:10
question
Mathematics, 20.09.2021 07:10
question
Mathematics, 20.09.2021 07:20
question
Mathematics, 20.09.2021 07:20
question
Mathematics, 20.09.2021 07:20
Questions on the website: 13722361