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, 03.07.2019 14:10
Amass of 1.5 kg of air at 120 kpa and 24°c is contained in a gas-tight, frictionless piston-cylinder device. the air is now compressed to a final pressure of 720 kpa. during the process, heat is transferred from the air such that the temperature inside the cylinder remains constant. calculate the boundary work input during this process.
Answers: 2
question
Engineering, 04.07.2019 18:10
Apump is used to circulate hot water in a home heating system. water enters the well-insulated pump operating at steady state at a rate of 0.42 gal/min. the inlet pressure and temperature are 14.7 lbf/in.2, and 180°f, respectively; at the exit the pressure is 60 lbf/in.2 the pump requires 1/15 hp of power input. water can be modeled as an incompressible substance with constant density of 60.58 lb/ft3 and constant specific heat of 1 btu/lb or. neglecting kinetic and potential energy effects, determine the temperature change, in °r, as the water flows through the pump.
Answers: 1
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
Condition monitoring is a major component of. (clo4) a)- predictive maintenance. b)-preventive maintenance c)-proactive maintenance d)-reactive maintenance.
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, 10.11.2020 22:10
question
Mathematics, 10.11.2020 22:10
question
Physics, 10.11.2020 22:10
question
Mathematics, 10.11.2020 22:10
question
Business, 10.11.2020 22:10
Questions on the website: 13722365