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, 22.06.2019 02:50
Which of the following had the greatest influence on opening the internet to the generly public
Answers: 1
question
Computers and Technology, 23.06.2019 15:20
What does a bonus object do? a. subtracts lives b. keeps track of a player's health c. gives a player an advantage d. makes text appear
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
2. fluorine and chlorine molecules are blamed fora trapping the sun's energyob forming acid rainoc producing smogod destroying ozone molecules
Answers: 2
question
Computers and Technology, 25.06.2019 02:30
What are the charges for invasion of privacy on computers
Answers: 1
You know the right answer?
Design a program that gives simple math quizzes. the program should display two random numbers that...
Questions
question
Physics, 09.09.2020 14:01
question
Mathematics, 09.09.2020 14:01
question
Mathematics, 09.09.2020 14:01
question
Mathematics, 09.09.2020 14:01
question
Mathematics, 09.09.2020 14:01
question
Mathematics, 09.09.2020 14:01
question
Social Studies, 09.09.2020 14:01
question
Mathematics, 09.09.2020 14:01
question
Mathematics, 09.09.2020 14:01
question
Mathematics, 09.09.2020 14:01
question
Physics, 09.09.2020 14:01
question
Mathematics, 09.09.2020 14:01
question
Mathematics, 09.09.2020 14:01
question
Mathematics, 09.09.2020 14:01
question
Mathematics, 09.09.2020 14:01
question
Social Studies, 09.09.2020 14:01
Questions on the website: 13722360