Question: Write a complete Java program called RepeatWhile that uses a while loop structure to prompt the user to enter five integer numbers ( via a

Write a complete Java program called RepeatWhile that uses a while loop structure to prompt the user to
enter five integer numbers (via a dialog box). The sum of the numbers must be calculated within the loop
structure. Include an output statement (System.out) to display the sum of all five numbers at the end of the
loop and the average (this should be calculated within the output statement). Use the following test
values in your program:
1,2,3,4,5, and include theoutput

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!