Question: JAVA DICE ROLL GAME! Use for loops and arrays to create the ultimate dice game! You must use two java classes. The first, use a

JAVA DICE ROLL GAME!

Use for loops and arrays to create the ultimate dice game! You must use two java classes. The first, use a method to generate a value based on the number of sides, a method that rolls one to three dice that results in a total and assigned to the array. Then one more to print the array that displays all of your rolls. Then you must create a tester class to ask for the number of rolls and number of dice. And then call your three previous methods. Your output should be similar to:

How many dice? 1-3: 3

Number of rolls: 3

Roll 1: 7

Roll 2: 9

Roll 3: 14

Roll the number: Times:

3 0

4 2

5 0

7 1

etc.

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!