subject
Engineering, 18.10.2019 22:30 raven1619

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, 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
Shafts are machine elements that are used to a) carry axial loads b) direct shear loads c) transmit power d) rotate at constant speed e) none of the above circular and square shafts subjected to the same torque under the same circum behave a) the same way b) almost the same way
Answers: 2
question
Engineering, 04.07.2019 18:10
You are making beer. the first step is filling the glass carboy with the liquid wort. the internal diameter of the carboy is 15 in., and you wish to fill it up to a depth of 2 ft. if your wort is drawn from the kettle using a siphon process that flows at 3 gpm, how long will it take to fill?
Answers: 1
question
Engineering, 04.07.2019 18:20
Select any two (2) areas of applications of chain-drive. (clo4) a)-permanent lubrication necessary b)-hydraulic forklift truck operation c)-rigging and heavy moving materials d)-relatively high maintenance costs e)-costlier than belt drives
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
Mathematics, 08.05.2021 23:50
Questions on the website: 13722361