subject
Engineering, 07.11.2019 04:31 nolam123

Agame 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: 2

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Afour cylinder four-stroke in-line engine has a stroke of 160mm, connecting rod length of 150mm, a reciprocating mass of 3kg and its firing order is 1-3-4-2. the spacing between cylinders is 100mm. i. show that the engine is in balance with regard to the primary inertia forces and primary 3. a and secondary inertia couples. li determine the out of balance secondary inertia force ii. propose ways of balancing this out of balance force and discuss the challenges that will arise
Answers: 3
question
Engineering, 04.07.2019 18:10
Aplate clutch has a single pair of mating friction surfaces 250-mm od by 175-mm id. the mean value of the coefficient of friction is 0.30, and the actuating force is 4 kn. a) find the maximum pressure and the torque capacity using the uniform-wear model. b) find the maximum pressure and the torque capacity using the uniform-pressure model.
Answers: 3
question
Engineering, 04.07.2019 18:10
Water at 55c flows across a flat plate whose surface temperature is held constant at 95c. if the temperature gradient at the plate's surface for a given value of x is 18 c/mm, find a) local heat transfer coefficient. b) heat flux
Answers: 3
question
Engineering, 04.07.2019 18:20
Most leaks in reciprocating air compressors can be detected and minimized by: (clo4) a)-detecting leakage areas using ultrasonic acoustic detector. b)-tightening joints and connections c)-replacing faulty equipment d)-all of the given options
Answers: 2
You know the right answer?
Agame rolls a die 10 times and counts how many times the number 5 or 6 shows up. if there are a tota...
Questions
question
Social Studies, 20.12.2020 19:50
question
History, 20.12.2020 19:50
question
Social Studies, 20.12.2020 19:50
question
Spanish, 20.12.2020 19:50
Questions on the website: 13722360