Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is from my computer science 1 class (Java). Your help is appreciated. This Java program must be Object Oriented. You may use 2 objects

This is from my computer science 1 class (Java). Your help is appreciated.

"This Java program must be Object Oriented. You may use 2 objects (one for each dice).

Create a public class named DiceRollerApp that has the main method and uses the PairOfDice class to rolls the dice each time the user responds "yes" to the request prompts. This app class should display special messages for "craps" (sum of both dice is 7), "snake eyes" (if both dice are 1), and "box eyes" (if both dice are 6). For this application, assume that two six-sided dice are used."

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

Beginning C# 5.0 Databases

Authors: Vidya Vrat Agarwal

2nd Edition

1430242604, 978-1430242604

More Books

Students also viewed these Databases questions