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, 03.07.2019 14:10
The y form of iron is known as: a) ferrite b) cementite c) perlite d) austenite
Answers: 3
question
Engineering, 03.07.2019 15:10
Heat is added to a piston-cylinder device filled with 2 kg of air to raise its temperature 400 c from an initial temperature of t1 27 cand pressure of pi 1 mpa. the process is isobaric process. find a)-the final pressure p2 b)-the heat transfer to the air.
Answers: 1
question
Engineering, 04.07.2019 18:10
Steel is coated with a thin layer of ceramic to protect against corrosion. what do you expect to happen to the coating when the temperature of the steel is increased significantly? explain.
Answers: 1
question
Engineering, 04.07.2019 18:10
Refrigerant 134a enters an insulated compressor operating at steady state as saturated vapor at -26°c with a volumetric flow rate of 0.18 m3/s. refrigerant exits at 9 bar, 70°c. changes in kinetic and potential energy from inlet to exit can be ignored. determine the volumetric flow rate at the exit, in m3/s, and the compressor power, in kw.
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, 22.07.2019 14:00
question
Mathematics, 22.07.2019 14:00
question
Mathematics, 22.07.2019 14:00
Questions on the website: 13722367