subject

Dice game 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 payout 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 - 4 4 payout = your function save c reset matlab documentation 1 function payout- dicegame( rolls) % your code goes here % 4 5 end code to call your function c reset 1 tenrollsofdice - randi(6,1,10) 2 payoutdicegame( tenrollsofdice) run function feedback?

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 17:30, jamarian101
Think about the poem "old ironsides." drag the subject of the poem to the subject box and the theme to the theme box. then decide whether each excerpt from the poem supports the subject or the theme.
Answers: 3
image
Computers and Technology, 22.06.2019 21:40, tdahna0403
Develop a function to create a document in the mongodb database “city” in the collection “inspections.” be sure it can handle error conditions gracefully. a. input -> argument to function will be set of key/value pairs in the data type acceptable to the mongodb driver insert api call b. return -> true if successful insert else false (require a screenshot)
Answers: 2
image
Computers and Technology, 23.06.2019 23:00, Maya629277
Lucas put a lot of thought into the design for his company's new white paper. he made sure to include repeating design elements such as color schemes and decorative images. his goal was to a. add symmetry b. create a unified publication c. provide consistency d. save money
Answers: 1
image
Computers and Technology, 24.06.2019 13:00, NycLife
Why should you evaluate trends when thinking about a career path?
Answers: 1
You know the right answer?
Dice game a game rolls a die 10 times and counts how many times the number 5 or 6 shows up. if there...

Questions in other subjects: