Question
Write an application that asks elementary students a set of 10 math problems Language: java First ask the user for a level and a problem
Write an application that asks elementary students a set of 10 math problems
Language: java
First ask the user for a level and a problem type.
You need to validate the level and problem type and loop until the user enters a correct one.
There should be 2 levels. Level 1 operands would have values in the range of 0-9 and level 2 operands would have values in the range of 0-99.
There should be 5 problem types. Problem type 1 requires the student to find the sum of the two numbers, problem type 2 requires the user to find the difference of the two numbers, problem type 3 requires the user to find the product of the two numbers, problem type 4 requires the user to find the quotient of the two numbers, and problem type 5 will randomly pick from one of the previous 4 problems types for each of the 10 problems. For subtraction and division the first operand must be greater than or equal to the second operand. For division the denominator cannot be 0. You can ignore the remainder of the division problems.
The program should ask the user 10 questions.
The program should randomly generate the numbers for each problem and display them to the user. Then the program should get the users answer and check that answer.
The program should provide individual feedback for each problem. There should be 3 different positive and 3 different negative feedbacks chosen from for each problem.
After the user finishes their 10 problems, display the number they got right and then query them if they want to play again. If they choose to play again, get a new level and problem type before asking 10 new problems.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started