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
Afluid flows with a velocity field given by v=(x/t)i.. determine the local and convective accelerations when x=3 and t=1.
Answers: 2
question
Engineering, 04.07.2019 18:10
Carbon dioxide gas expands isotherm a turbine from 1 mpa, 500 k at 200 kpa. assuming the ideal gas model and neglecting the kinetic and potential energies, determine the change in entropy, heat transfer and work for each kilogram of co2.
Answers: 2
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:10
What are the major differences between injection molding and extrusion?
Answers: 2
You know the right answer?
Write a fully commented matlab script that will allow the user to practice basic multiplication ("2s...
Questions
question
Mathematics, 14.08.2020 22:01
question
English, 14.08.2020 22:01
question
Mathematics, 14.08.2020 22:01
Questions on the website: 13722360