Question: Task 3 Michael is writing a program for a dice game played with three dice. (a) The player rolls the dice. and is given points

 Task 3 Michael is writing a program for a dice game

Task 3 Michael is writing a program for a dice game played with three dice. (a) The player rolls the dice. and is given points according to the following algorithm. diel. die2 and die3 equal? Score = die1 + die2 + die3 Are two of the dice equal? score = sum on two equal dice score = score - sum on third die State the value of the scores if the dice rolled are: 246 551 135 (b) Some rolls of the dice produce a negative score. State a set of three numbers that can be used to test whether the algorithm produces a negative score when it should. and state the expected output of your test data

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 Mathematics Questions!