Question: Create the logic for a program that prompts a user for 20 numbers and stores them in an array. Pass the array to a method
Create the logic for a program that prompts a user for 20 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 20 numbers until the user wants to quit.
Step by Step Solution
3.34 Rating (166 Votes )
There are 3 Steps involved in it
Flowchart Pseudocode start Declarations num x num average string doContinue num LENGTH 20 num number... View full answer
Get step-by-step solutions from verified subject matter experts
