Question: Programming Assignment: Numbers Write a C++ program that asks the user to enter five real numbers and then stores the numbers in an array as





Programming Assignment: Numbers Write a C++ program that asks the user to enter five real numbers and then stores the numbers in an array as they are read from the keyboard. Your program should then call functions that calculate the maximum, the minimum, the sum, and the average of the numbers. Your program should also display these calculated values on the screen. Input Your program should ask the user to enter five real numbers. The numbers can be negative, positive, or zero. Use a for loop to read each number into an array element. NOTE: If the user enters nonnumeric characters, your program will generate an error. For this assignment however, you do not have to test for valid user input. Functions Your program should contain a total of seven functions including the maidlunction. All functions except the main function are described in the following table: Returns Description Reads a specified number of real numbers from the keyboard and stores them in a double array. The entire array must be passed to the Function Name getNumbers void umbers function. Calculates the sum of the numbers stored in an array. The entire array must be passed to the getSum function. Do not allow this function to double getsum e the values in the arra Returns the maximum number stored in an array. The entire array must be passed to the getMaximum function. Do not allow this function to change the values in the arr Returns the minimum number stored in an array. The entire array getMaximum ?] e??? @
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
