Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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.
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started