Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

C++ Database Development

Authors: Al Stevens

1st Edition

1558283579, 978-1558283572

More Books

Students also viewed these Databases questions

Question

5. List the forces that shape a groups decisions

Answered: 1 week ago

Question

4. Identify how culture affects appropriate leadership behavior

Answered: 1 week ago