Question: C++ Assignment, please explain code using comments. Thank you. Programming Assignment!5 Arrays Objectives: Write a program that finds the highest, lowest, mean, and median values
C++ Assignment, please explain code using comments. Thank you.
Programming Assignment!5 Arrays Objectives: Write a program that finds the highest, lowest, mean, and median values of a set of numerical data Use Arrays to store data and sort Use an array as argument in function Calls 1. 2. 3. Problem statement: Write a program that will a) Prompt the user to enter the user name, numerical grade of each students in a test, one at a time, and store it in an array. This is accomplished in the main module. The user presses enter key indicate all the grades are entered. The program will keep the count of the number of grades entered. b) Display all the grades in a tabular form. c) Create three functions (i)one to find the average grade (ii)second one to find the lowest grade (iii)and a third function to find the highest grade Pass the array name and the number of grades to each function and each function returns the appropriate value d) Finally display the class average, highest grade, and the lowest grade, at the bottom. At the end the user is prompted to exit or enter grades for another class Procedure or Details: The arrays and the size of the array are passed to each function. All calculations are done in the function. The values are displayed in the main module The following is an example of the output: Name Grade John George 90 72 86 89 4 im 95 68 80.1 The class average Highest Grade is: Mary92 Lowest Grade: J 62
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
