Answered step by step
Verified Expert Solution
Question
1 Approved Answer
java ICS 141 Lab #2 Write a small program that continually reads in user values and calculates the average of all values. The program should
java
ICS 141 Lab #2 Write a small program that continually reads in user values and calculates the average of all values. The program should first ask the user for the amount of values to be entered. Upon storing this value, the program should proceed to read in that amount of values. What will be the best strategy here? I suggest only calculating the average after you know you have read in all values. You can expect to use some type of loop to continually read in the values. Hint: Since we will know specifically how many values we need to read, a for-loop may be the best fit 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