Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In Java, you will need to create two dice objects. You will roll the dice a user-specific number of times and count each time the
In Java, you will need to create two dice objects. You will roll the dice a user-specific number of times and count each time the dice roll. The number of times both dice land on 1 will need to be recorded. Last, determine the ratio of the rolls.
Required: keyboard input, methods
Example Output:
Number of rolls is: 1000
Number of times both dice landed on 1 is: 4
Ratio: .004
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