Question: LAB TOPIC(S): While Loop For Loop Random Number Generator Programming Activity Description: This lab requires you to simulate a program that helps elementary kids learn
LAB TOPIC(S): While Loop For Loop Random Number Generator Programming Activity Description: This lab requires you to simulate a program that helps elementary kids learn addition . Two numbers between 1 and 10 are generated randomly from your program . Each time the kids will be shown 4 addition problems along with the result printed as shown in the sample output. Write a program that simulates this. The user will be asked if he/she wishes to continue learning to add numbers. If the answer is, Y or y, then your application will continue to simulate 4 addition problems at a given time. Use a for loop in order to keep track of the number of times the problems are shown. You can name your program AdditionApp.java See sample output below. (Note: Because the numbers are selected randomly , you will not see the same output as the samples shown below). output Let's start the tutorial... You will be shown random numbers between 1 and 10 -- followed by the result of their addition The numbers are: 5 7 The total is : 12 The numbers are: 6 10 The total is : 16 The numbers are: 6 8 The total is : 14 The numbers are: 7 7 The total is : 14 Let's try again (y = yes)? Y The numbers are: 7 6 The total is : 13 The numbers are: 6 6 The total is : 12 The numbers are: 2 1 The total is : 3 The numbers are: 5 3 The total is : 8 Let's try again (y = yes)? y
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
