Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Java please. if u could add comments that's would be great ! Yo u will simulate rolling a pair of dice (6 sided) a number
Java please. if u could add comments that's would be great !
Yo u will simulate rolling a pair of dice (6 sided) a number of times. You program will implement the following methods main -calls other methods . getRoll parameters: o int - number of dice o int - sides on dice o returns: int - a random roll with above parameters. getlnteger - parameters String-prompt (what to ask the user) o returns: int- integer the user entered printRolls print the results parameters: 11 ints -number of different rolls return: void o o Your program will first ask the user for the number of rolls to simulate (using getinteger). It will the simulate that number of rolls (using getRolls). You will then print out the different roll possabilities, the total number rolled for each roll, and the percentage of the totalStep 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