subject
Engineering, 15.10.2020 08:01 gedntrxAa

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 diceGame that has an input row array of 10 integers representing the ten rolls of dice, and calculates the pay out. For example: >> tenRollsOfDice =randi(6,1,10) >> payOut= diceGame( tenRollsOfDice ) tenRollsOfDice = 5 6 1 6 4 1 2 4 6 6 payOut = 1

ansver
Answers: 3

Another question on Engineering

question
Engineering, 04.07.2019 18:20
Derive the correction factor formula for conical nozzle i=-(1+ cosa) and calculate the nozzle angle correction factor for a nozzle whose divergence hal-fangle is 13 (hint: assume that all the mass flow originates at the apex of the cone.
Answers: 3
question
Engineering, 04.07.2019 19:10
Apressure vessel with an r/t 20 cannot be treated as thin walled vessel. a)-trune b)- false
Answers: 3
question
Engineering, 04.07.2019 19:10
When subject to a steady load (within elastic range) over a long period of time, what is the major difference in material behavoir between steel and plastic?
Answers: 2
question
Engineering, 04.07.2019 19:20
Determine (a) the maximum thermal efficiency of reversible power cycles operating between a hot reservoir at 1000°c and a cold reservoir at 200°c and (b) the maximum cops for reversible refrigeration and heat pump cycies, respectively, between 28°c and 14°c.
Answers: 1
You know the right answer?
A game rolls a die 10 times and counts how many times the number 5 or 6 shows up. If there are a tot...
Questions
question
Mathematics, 24.02.2021 23:00
question
Mathematics, 24.02.2021 23:00
question
Mathematics, 24.02.2021 23:00
question
Mathematics, 24.02.2021 23:00