Create the logic for a program that prompts a user for 10 numbers and stores the
ID: 3534724 • Letter: C
Question
Create the logic for a program that prompts a user for
10 numbers and stores them in an array. Pass the array to a
method that calculates the arithmetic average of the numbers
and returns the value to the calling program. Display
each number and how far it is from the arithmetic average.
Continue to prompt the user for additional sets of 10 numbers
until the user wants to quit.
logic must have the following:
Calculate Average Using Method
Pass array to method
Method sums numbers and divides by 10
Loop to output number and difference from average
Ask if want to run again and code to check answer
Explanation / Answer
conact me on timacs12@gmail.com you can rate after getting the answer
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.