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 09:00
What is one way in which tablets differ from laptops and notebooks? tablets are designed for touch-based interaction. tablets are designed to be used as desktops. tablets are designed for input via a keyboard and mouse. tablets are designed to be larger than laptops.
Answers: 1
question
Computers and Technology, 22.06.2019 12:40
In a response of approximately 50 words, explain why it would be essential for the successful a/v technician to participate in additional coursework, presentations and seminars offered by equipment manufacturers as well as annual conferences attended by colleagues in the industry.
Answers: 1
question
Computers and Technology, 23.06.2019 08:00
Match the items with their respective descriptions.
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
Drag the tiles to the correct boxes to complete the pairs. match the errors with their definitions. #name #value #ref when a formula produces output that is too lengthy to fit in the spreadsheet cell arrowright when you enter an invalid cell reference in a formula arrowright when you type text in cells that accept numeric data arrowright when you type in a cell reference that doesn’t exist arrowright reset next
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
English, 05.01.2020 10:31
question
Mathematics, 05.01.2020 10:31
Questions on the website: 13722360