Question: IN JAVA: Write a program that simulates playing a dice game. The game is played by rolling two dice. Each dice gives a number from

IN JAVA: Write a program that simulates playing a dice game. The game is played by rolling two dice. Each dice gives a number from 1 to 6. If the dice roll is a double (each dice has the same value), then you win. If the dice are different you lose. A winning roll scores 5 points, a losing roll losing 1 point. There are 10,000 rolls in one game. Find the average point total after playing 100 different games. Points can go negative. Also print out the highest and lowest point totals achieved at any time in any of the 100 games.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!