Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program called DiceRoller. Your program will simulate a roll of two 6-sided dice using Java's Random object (not Math.random0). Your program should produce

image text in transcribed
Write a program called DiceRoller. Your program will simulate a roll of two 6-sided dice using Java's Random object (not Math.random0). Your program should produce 3 lines of output: 1. The value of the first die, a random [whole] number in the range 1-6, inclusive 2. The value of the second die, a random (whole] number in the range 1-6, inclusive 3. The sum of the values of the two dice For example, if the two dice are 3 and 5, the output would look like this: Make sure you use the java Random object as demonstrated in class (the grading script will be looking for it)

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

Data And Databases

Authors: Jeff Mapua

1st Edition

1978502257, 978-1978502253

More Books

Students also viewed these Databases questions