Question: Answer in java code. To learn how to use strange loops, especially for user input. The program computes the average of a sequence of integers.

Answer in java code.
 Answer in java code. To learn how to use "strange" loops,

To learn how to use "strange" loops, especially for user input. The program computes the average of a sequence of integers. The program will print a greeting message to explain how to use the program Then the program will prompt for a number. If the number is 999 then the program will terminate and print the average of the numbers entered. Otherwise it will prompt the user for another number. You will need to use a "strange" loop Enter the numbers. Enter 999 to end. Enter next number: 100 Enter next number: 34 Enter next number: 76 Enter next number: 11 Enter next number: 999 The average is 55.25

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 Databases Questions!