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. Don't use print and scanner. Use << cout and >>cin
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);
average - /4, defined current, double type.
You can not return 10 students.
A=90, B=80, C=70, D=60, F character for score letter (if else statement)
Dont use constant for max score
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
