Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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 total

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

Automating Access Databases With Macros

Authors: Fish Davis

1st Edition

1797816349, 978-1797816340

More Books

Students also viewed these Databases questions