Question: java Question 1: The Math Practice program: Write a class called Math Practice that helps a student practice basic addition, subtraction, multiplication, and division operations.

java

java Question 1: The Math Practice program: Write a class called Math

Question 1: The Math Practice program: Write a class called Math Practice that helps a student practice basic addition, subtraction, multiplication, and division operations. Your program should randomly generate 10 questions of these four operations. Please note in the division operation, the denominator cannot be zero and the student should keep up to two digit numbers after the decimal point if the answer is a real number. The questions should be in the form of N1 + N2 = N1-N2 = N1 x N2 = N1-N2 = Both N1 and N2 are random numbers from 0-99. If the student gives the correct answer your program should reply "Excellent! Keep up the good work!", otherwise it should display "Sorry, the correct answer is . At the end of the practice, your program should calculate and show the percentage of correct answers. Here is an example output (note: numbers in red are the inputs from the user, and the texts in blue are from your program): Welcome to Math Practice program, generated by your name) from ECE at PNW: Question 1: 4x5=20 Excellent! Keet up the good work! Page 12/3 Question 2: 10+6= 1.2 Sorry, the correct answer is 1.67 You completed ten questions, and you scored 90% on the practice

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!