Question: Please help with programming question [30 points] Create a MathTutor Java application that displays math problems by randomly generating two integer numbers, 0 through 10,

 Please help with programming question [30 points] Create a MathTutor Java

Please help with programming question

[30 points] Create a MathTutor Java application that displays math problems by randomly generating two integer numbers, 0 through 10, and an operator: *, +, -, (use a random number from 1 to 4 to represent the operator; i.e. 1 for t, 2 for -, 3 for *,4 for and then prompts the user for an answer. Remember that if the operator is division () you should make sure the denominator is not zero. If it is, then generate another random number. Also, if the operator is division () or subtraction (- and the second random integer number is greater than the first one, swap the two numbers. The application should check the answer, display a message, and the correct answer, if necessary. The application output should look similar to: 2. What is 2 *9? 18 Correct! What is 9 - 7 1 Sorry, the correct answer is 2 To generate a random number in a range, the following expression is used: (highNum -lowNum 1) * Math.random() lowNum

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!