Question: Write a program C++ that defines a two-dimension integer array, which stores the test scores for 10 students and 4 scores each student. The program
Write a program C++ that defines a two-dimension integer array, which stores the test scores for 10 students and 4 scores each student. The program should have the following functions.
getData: this function is to get input of all test scores for each student.
getAverage: This function is to calculate the average score(double type) for each student. No input and output in the function.
getLetterScore: This function is to get the letter score based on their average score. No input and output in the function.
findMaxScore: this function is to find the max average score. No input and output in the function.
Define the necessary variables and arrays in the main function and display the results of each function in the main function. And also make sure which arrays should be passed as const. The function prototypes are shown below (not include const yet):
void getData(int[][cols],int);
void getAverage(int[][cols], int, double[]);
void getLetterScore(double[], int,char[]);
double findMaxScore(double[],int);
Use cout and cin
Use material from book "C++ From Control Structures through Objects (th Edition by Tony Gaddis" Chapter 7.8 Two-Dimensional Arrays.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
