Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started