Question: Lab: define the class Dice and test it. --------------------- -------------- Dice -------------- -sideUp:int -------------- +Dice() +Dice(side:int) +toss():void +getSideUp():int */ Dice (extra credit) Simulate a dice,

Lab: define the class Dice and test it.

---------------------

--------------

Dice

--------------

-sideUp:int

--------------

+Dice()

+Dice(side:int)

+toss():void

+getSideUp():int

*/

Dice (extra credit)

Simulate a dice, roll a dice with 6 sides

Problem 1: If I roll a six sided die, whats the chances of you guessing the correct number it landed on ?

Problem 2: What is the probability of rolling two dice and getting at least one odd number?(for here he mentioned 20 times)

i have little confused what my professor question is.

is will be using with c++ language

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!