Question: Write a program that simulates the rolling of a pair of dice. First, write a class called Dice (file Dice.java) that simulates a single dice

Write a program that simulates the rolling of a pair of dice. First, write a class called Dice (file Dice.java) that simulates a single dice (the singular for dice is die but in modern English dice is an acceptable singular so I will call the class Dice). The Dice class should have the following fields and methods (with these names and caps): Once you have designed the class, design a program/driver class (file [YourName1-Assignment; replace [Your Name] with your actual name) that creates two objects/instances of the Dice class to simulate a pair of dice. The program should simulate the rolling of the 2 dice and display their values (using the Output Dice method, and, if you did the extra credit, also using the Draw Dice method)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
