Dice game A game rolls a die 10 times and counts how many times the number 5
Fantastic news! We've Found the answer you've been seeking!
Question:
Dice game A game rolls a die 10 times and counts how many times the number 5 or 6 shows up. If there are
? A total of seven or more times, the win is 2 dollars.
? A total of four or more times but less than seven, the win is 1 dollars.
? A total of three or less, the win is 0 dollars.
Write a function called payOut that has an input row array of 10 integers representing the ten rolls of dice, and calculates the pay out. For example:
Related Book For
Discrete and Combinatorial Mathematics An Applied Introduction
ISBN: 978-0201726343
5th edition
Authors: Ralph P. Grimaldi
Posted Date: