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.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
