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:10
An ideal otto cycle with air as the working fluid has a compression ratio of 8. the minimum and maximum temperatures in the cycle are 300 k and 1340 k. use constant specific heats at room temperature to determine (a) the amount of heat transferred to the air during the heat- addition kj/kg, (b) the thermal efficiency, and (c) the thermal efficiency of a carnot cycle ope limits. process, in rating between the same temperature
Answers: 2
question
Engineering, 04.07.2019 18:10
Which one from below is not one of the reasons of planning failures? (clo3) a)-planner is careless. b-planner spend less time in the field but more time on the desk c)-planner is not qualified d)-planner does not have sufficient time to properly plan
Answers: 3
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 18:20
Amixture of slurry and mud is to be pumped through a horizontal pipe of diameter 500 mm. the fluid behaves as a bingham plastic with a yield stress of 30 pa and viscosity 0.04 pa.s. describe the effects of the shear stress through a transverse section of the pipe by plotting the variation in shear stress and velocity profile: (i) just before the slurry starts to move (ii) as the slurry flows when the pressure gradient is double that in part (i)
Answers: 3
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, 10.12.2021 16:50
Questions on the website: 13722367