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 06:30
Exchanging which type of data uses the least bandwidth? music photographs video voice bandwidth- the amount of data that can be moved between two points in a set time period
Answers: 1
question
Computers and Technology, 22.06.2019 06:30
Requirement types discussed during software development include functional and color scheme nonfunctional and code style constraint and nonfunctional fashionable and functional.
Answers: 2
question
Computers and Technology, 22.06.2019 18:10
How can i delete permalinks from a word press site?
Answers: 1
question
Computers and Technology, 22.06.2019 18:30
Technician a says that a shop towel should never be used to clean around the flange area before replacing an automatic transmission filter. technician b says that a dimpled transmission fluid pan can be repaired. who is right
Answers: 3
You know the right answer?
Design a program that gives simple math quizzes. the program should display two random numbers that...
Questions
question
Mathematics, 18.05.2021 05:40
question
Mathematics, 18.05.2021 05:40
question
Mathematics, 18.05.2021 05:40
question
English, 18.05.2021 05:40
question
Mathematics, 18.05.2021 05:40