subject
Engineering, 20.12.2019 05:31 reagancunningham2004

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: 3

Another question on Engineering

question
Engineering, 03.07.2019 19:30
When using the ohmmeter function of a digital multimeter, the leads are placed in what position relative to the component being tested? a. parallel b. control c. series d. line
Answers: 3
question
Engineering, 04.07.2019 18:10
The temperature of air decreases as it is compressed by an adiabatic compressor. a)- true b)- false
Answers: 2
question
Engineering, 04.07.2019 18:10
Water in a partially filled large tank is to be supplied to the roof top, which is 8 m above the water level in the tank, through a 2.2-cm-internal-diameter pipe by maintaining a constant air pressure of 300 kpa (gage) in the tank. if the head loss in the piping is 2 m of water, determine the discharge rate of the supply of water to the roof top in liters per second.
Answers: 3
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
Biology, 31.08.2020 21:01
question
Mathematics, 31.08.2020 21:01
question
Mathematics, 31.08.2020 21:01
question
Mathematics, 31.08.2020 21:01
Questions on the website: 13722360