subject
Engineering, 26.11.2019 03:31 jdbell627

Write a fully commented matlab script that will allow the user to practice basic multiplication ("2s" through "12s"). the script should use both for and while loops.

prompt the user to select an integer value between 2 and 12, inclusive. if the user does not enter an integer value or if the the value entered is not in the specified range, the program should provide the user with a message and then return them to the original prompt.

game mode 1: randomly generate successive, unique (e. g. non-repeating) multiplication problems that involve multiplying the integer selected in the previous step by an integer value between 2 and 12, inclusive.

as soon as the user enters an incorrect answer, the script should stop generating problems and output the following information:

you correctly answered __ multiplication problems in a row involving __s.

where the number of correctly answered problems appears in the first blank and the integer the user selected in the first step appears in the second blank.

game mode 2: randomly generates 10 unique (e. g. non-repeating) multiplication problems that involve multiplying the integer selected in the previous step by an integer value between 2 and 12, inclusive, after which the following report should be displayed in the command window.

you correctly answered __ out of __ problems %) involving __s.

the number of correctly answered problems appears in the first blank, the total number of problems appears in the second blank, the percentages of problems answered correctly appears in the third blank, and the integer the user selected in step 1 appears in the last blank.

after completing a round of the game, the user should have the option to play another round or quit the game.

ansver
Answers: 3

Another question on Engineering

question
Engineering, 04.07.2019 18:10
During a steady flow process, the change of energy with respect to time is zero. a)- true b)- false
Answers: 2
question
Engineering, 04.07.2019 18:10
Give heat transfer applications for the following, (i) gas turbines (propulsion) ) gas turbines (power generation). (iii) steam turbines. (iv) combined heat and power (chp). (v) automotive engines
Answers: 1
question
Engineering, 04.07.2019 18:10
Journeyman training is usually related (clo2) a)-to specific tasks b)-to cost analysis of maintenance task c)-to control process to ensure quality d)-to installation of machinery
Answers: 2
question
Engineering, 04.07.2019 19:20
Heat transfer by is the fastest mode of heat transfer that requires no intervening medium. a)-conduction b)-convection c)-radiation d)-conduction and convection
Answers: 1
You know the right answer?
Write a fully commented matlab script that will allow the user to practice basic multiplication ("2s...
Questions
question
Physics, 29.01.2020 04:56
question
Mathematics, 29.01.2020 04:56
Questions on the website: 13722363