Question: In this program you will be playing a maths games. In this game there will be 4 levels. Use any of these else if, for
In this program you will be playing a maths games.
In this game there will be 4 levels. Use any of these else if, for loops, while loops, do while loops to complete problem.
Please choose choice 1-5 : multiplication (1), addition (2), subtraction (3), division (4), or random (5) equation?
User input : 1
Solve 5 X 5 = x ?, what is x? 25
Good job, you are on level 2!
L4
L3
L2 x
L1 x
Please choose choice 1-5 : multiplication (1), addition (2), subtraction (3), division (4), or random (5) equation?
User input : 2
Solve 5 + 5 = x ?, what is x? 12
Wrong , you drop to level 1
L4
L3
L2
L1 x
Please choose choice 1-5 : multiplication (1), addition (2), subtraction (3), division (4), or random (5) equation?
User input : 3
Solve 5 - 1= x ?, what is x? 4
Correct , you progress to level 2
L4
L3
L2 x
L1 x
Please choose choice 1-5 : multiplication (1), addition (2), subtraction (3), division (4), or random (5) equation?
User input : 3
Solve 5 / 5 = x ?, what is x? 1
Correct you progress to level 3
L4
L3 x
L2 x
L1 x
Please choose choice 1-5 : multiplication (1), addition (2), subtraction (3), division (4), or random (5) equation?
User input : 5
Solve 5 + 5 = x ?, what is x? 10
Correct you progress to level 4
L4 x
L3 x
L2 x
L1 x
you won the game. Do you like to repeat the game ? Y to repeat N to not repeat.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
