Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions