Question: Make a subtraction quiz program for the 1st graders. Take two random integer numbers between 0-10. Use the larger one minus the smaller one, and
Make a subtraction quiz program for the 1st graders. Take two random integer numbers between 0-10. Use the larger one minus the smaller one, and invite the 1st graders to enter the answers. Show it is correct or incorrect for each question. And show how many the quiz taker gets correct and how many incorrect at the end of the quiz.
a) If you choose to modify from your addition quiz program, make sure you change the class name to SubtractionQuiz. And you should resave the file as SubtractionQuiz.java. Make sure the class name match with the file name.
b) Use Math.random( ) method in this program to get the two random numbers. Make sure they are integer random numbers from 0 to 10.
c) Compare the two random numbers and make sure you always use larger one to minus the smaller one.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
