Answered step by step
Verified Expert Solution
Link Copied!

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
image text in transcribed
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

b. What are its goals and objectives?

Answered: 1 week ago