Answered step by step
Verified Expert Solution
Question
1 Approved Answer
no arrays Dice rolling project Sample Console Output Roll the dice? 1y/) Rell 1: 2&5 Ro1l again? (y):Y Roll 2: 2.1 Roll again? ( Y
no arrays
Dice rolling project Sample Console Output Roll the dice? 1y/) Rell 1: 2&5 Ro1l again? (y):Y Roll 2: 2.1 Roll again? ( Y Roll 3: 46 Roll again? (y) Ro11 4 &6 Box cars! Ro1l again? (y)Y Roll 5: 1&1 Snake eyes! Roll again? Y): n Operation If the user chooses to roll the dice, the application rolls two six-sided dice, displays the results of each, and asks if the user wants to roll again. Specifications . Create a public class named DiceRoller App that has the main method and uses the PairOfDice class to roll the dice each time the user responds 'y' to the request prompts. This app class should display special messages for "craps" (sum of both dice is T), "snake cyes (double 1's), and "box cars" (double 6's). For this application, assume that two six-sided dice are usedStep 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