subject

Challenge 16A - Rolling Dice package: chall16A
class: Main, Dice

Part 1

Create a class called "Dice" which we will use to instantiate a pair of six-sided cubes we generally call "Dice".

• The class should keep track of its face value
• It should be able to roll a random number between 1-6.
• Constructor should store die value.
•It should be able to return the face value when called.
Part 2

Create a methods for rolling the dice.

• One method for returning the value of a single dice roll.
•One method for returning the sum of a pair of dice rolled.
• You need to be able to access the individual face values of each Die.
Part 3

In the Main driver class create a program that rolls a single Die 1000 times and calculates the percentage of times it rolls a six.

Part 4

In the Driver class create another program that rolls a pair of dice and calculates the percentage of times out of 1000 you roll 2 –ones (Snake Eyes) and the number of times you roll just 1 – one.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 21:00
It is not a good idea in a cover letter to mention another person whom the employer knows.
Answers: 1
question
Computers and Technology, 21.06.2019 21:30
Apower user needs you to install a second type of operating system on his computer to increase efficiency while running some specialized software programs. which installation technique should you use?
Answers: 3
question
Computers and Technology, 22.06.2019 21:30
The graph shows median weekly earnings for full-time workers according to education level. which can you not conclude?
Answers: 2
question
Computers and Technology, 22.06.2019 22:00
Researchers measured the data speeds for a particular smartphone carrier at 50 airports. the highest speed measured was 78.1 mbps. the complete list of 50 data speeds has a mean of x overbarequals16.11 mbps and a standard deviation of sequals18.65 mbps. a. what is the difference between carrier's highest data speed and the mean of all 50 data speeds? b. how many standard deviations is that [the difference found in part (a)]? c. convert the carrier's highest data speed to a z score. d. if we consider data speeds that convert to z scores between minus2 and 2 to be neither significantly low nor significantly high, is the carrier's highest data speed significant? a. the difference is nothing mbps.
Answers: 3
You know the right answer?
Challenge 16A - Rolling Dice package: chall16A
class: Main, Dice

Part 1
Questions
question
Mathematics, 07.07.2019 08:30
question
Mathematics, 07.07.2019 08:30
question
Mathematics, 07.07.2019 08:30
question
Mathematics, 07.07.2019 08:30
Questions on the website: 13722363