subject

Design a program that gives simple math quizzes. The program should display two random numbers that are to be added, such as

247

+ 129

The program (Java language) should allow the student to enter the answer. If the answer is correct, a message of congratulations should be displayed. If the answer is incorrect, a message showing the correct answer should be displayed

Here is the pseudo-code to follow

//Declare the variables to hold intermediate and final values

Declare Integer rand1, rand2, sum ans

//Get the random numbers generated by the function

//random and assign those values in rand1 and rand2 respectively

Set rand1 = random(1, 999)

Set rand2 = random(1, 999)

//Dsiplay rand1 and rand2 in a formatted way treated for addition

Display

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 12:10, jefersina16
2. fabulously fit offers memberships for$35 per month plus a $50 enrollmentfee. the fitness studio offersmemberships for $40 per month plus a$35 enrollment fee. in how many monthswill the fitness clubs cost the same? what will the cost be?
Answers: 1
image
Computers and Technology, 23.06.2019 14:00, ava5015
What is html ? give a small description about html
Answers: 2
image
Computers and Technology, 24.06.2019 15:00, mbede002
Who introduced the concept of combining artificial and natural light in the studio
Answers: 1
image
Computers and Technology, 24.06.2019 19:00, cxttiemsp021
Luis is cloud-based( microsoft bot framework). true false
Answers: 1
You know the right answer?
Design a program that gives simple math quizzes. The program should display two random numbers that...

Questions in other subjects:

Konu
Mathematics, 01.09.2020 19:01
Konu
Chemistry, 01.09.2020 19:01
Konu
Mathematics, 01.09.2020 19:01