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
If the thermal strain developed in polyimide film during deposition is given as 0.0044. assume room temperature is kept at 17.3 c, and thermal coefficient of expansion for the film and the substrate are 54 x 10^-6c^-1 and 3.3 x 10^-6c^-1respectively. calculate the deposition temperature.
Answers: 3
question
Engineering, 04.07.2019 08:10
Which of the following is an easy way to remember the modified “x” tire rotation? a. nondrive wheels straight, cross the drive wheels b. drive wheels straight, cross the nondrive wheels c. drive wheels crossed, nondrive wheels straight d. drive wheels crossed, nondrive wheels crossed
Answers: 1
question
Engineering, 04.07.2019 18:10
Ahot wire operates at a temperature of 200°c while the air temperature is 20°c. the hot wire element is a tungsten wire of 5 um diameter and 2 mm in length. plot using excel current, heat transfer and heat generated by the wire for air velocity varying from 1-10 m/s in steps of lm/s? matlab the sensor voltage output, resistance, or assume nu 0.989 re033pr13 take air properties at tr (200°c20°c)/2 = 110°c properties of tungsten: c 0.13 kj/kg.k 3 p 19250 kg/m k (thermal conductivity) = 174 w/m.k
Answers: 2
question
Engineering, 04.07.2019 18:20
Steam enters a converging nozzle at 3.0 mpa and 500°c with a at 1.8 mpa. for a nozzle exit area of 32 cm2, determine the exit velocity, mass flow rate, and exit mach number if the nozzle: negligible velocity, and it exits (a) is isentropic (b) has an efficiency of 94 percent
Answers: 2
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, 02.01.2021 06:30
question
English, 02.01.2021 06:30
question
Mathematics, 02.01.2021 06:30
question
Geography, 02.01.2021 06:30
question
English, 02.01.2021 06:30
question
English, 02.01.2021 06:30
question
Mathematics, 02.01.2021 06:30
question
History, 02.01.2021 06:30
Questions on the website: 13722360