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

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:30
This isn’t really school related, but like where the heck can you find manga, to read to where you don’t have to pay money, for points? my friend wants me to read bj alex, and i can’t find it anywhere for free.
Answers: 2
question
Computers and Technology, 22.06.2019 18:00
Budgets you to do all of the following expect a) send frivolously b) avoid over spending c) gain financial independence d) examine your priorities and goals
Answers: 2
question
Computers and Technology, 22.06.2019 18:30
If an improvement creates no significant change in a product’s performance, then it is a(n) ? a0 design improvement. (there are no answer choices)
Answers: 1
question
Computers and Technology, 24.06.2019 08:20
Evaluate the scenario below and indicate how to handle the matter appropriately. situation: michael received an e-mail from what he thought was his doctor’s office, requesting his social security number. since he had just been in to see his doctor last week, he replied to the e-mail with his social security number.
Answers: 2
You know the right answer?
Design a program that gives simple math quizzes. The program should display two random numbers that...
Questions
question
Arts, 11.12.2021 08:30
question
Mathematics, 11.12.2021 08:30
question
Mathematics, 11.12.2021 08:30
question
History, 11.12.2021 08:30
question
English, 11.12.2021 08:30
question
Business, 11.12.2021 08:30
Questions on the website: 13722367