In c++ please, The following  is specifially where im having trouble 4) Create a function to print out the results for each test. void printExamOverview(int stuGrades[][TOTAL_TESTS], int numStu); This function will call getExamAvgMinMaxGrade() to get the class average,  highest/lowest grade for each exam. Then it will save the data in a 2D array  defined as

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section7.4: Arrays As Arguments
Problem 7E: (Statistics) Write a program that includes two functions named calcavg() and variance(). The...
icon
Related questions
Question
100%

In c++ please,

The following  is specifially where im having trouble

4) Create a function to print out the results for each test.
void printExamOverview(int stuGrades[][TOTAL_TESTS], int numStu);
This function will call getExamAvgMinMaxGrade() to get the class average, 
highest/lowest grade for each exam. Then it will save the data in a 2D array 
defined as 

The function will print out the semester grade report as shown below. The
average grade will have 2 decimal places.
F:\ET575Project\Project2_gradingArrays.exe
SEMESTER GRADE REPORT
Please enter 3 integer grades (Ø-100) below.
100 200 300
Invalid grade (s). Please re-enter.
Please enter 3 integer grades (0-100) below.
F1 100 100
Invalid grade (s). Please re-enter.
Please enter 3 integer grades (0-100) below.
70 80 90
More student? Enter 'Y' or 'y' to continue or any letter to exit.
Please enter 3 integer grades (0-100> be low.
65 75 85
More student? Enter 'Y' or 'y' to continue or any letter to exit.
Please enter 3 integer grades (0-100) be low.
88
77
66
More student? Enter 'Y or 'y' to continue or any letter to exit.
Student
Exam 1
Exam 2
Exam 3
70
65
88
80
75
77
90
85
66
LOWEST
HIGHEST
AUG
65
88
74.33
75
80
77.33
66
90
80.33
EXIT PROGRAM. GOODBYE!
1) Do not use any library functions such as min () and max ().
2) Add comments to explain the algorithm of your program.
3) Keep your project coding clear with your own programming style.
Transcribed Image Text:The function will print out the semester grade report as shown below. The average grade will have 2 decimal places. F:\ET575Project\Project2_gradingArrays.exe SEMESTER GRADE REPORT Please enter 3 integer grades (Ø-100) below. 100 200 300 Invalid grade (s). Please re-enter. Please enter 3 integer grades (0-100) below. F1 100 100 Invalid grade (s). Please re-enter. Please enter 3 integer grades (0-100) below. 70 80 90 More student? Enter 'Y' or 'y' to continue or any letter to exit. Please enter 3 integer grades (0-100> be low. 65 75 85 More student? Enter 'Y' or 'y' to continue or any letter to exit. Please enter 3 integer grades (0-100) be low. 88 77 66 More student? Enter 'Y or 'y' to continue or any letter to exit. Student Exam 1 Exam 2 Exam 3 70 65 88 80 75 77 90 85 66 LOWEST HIGHEST AUG 65 88 74.33 75 80 77.33 66 90 80.33 EXIT PROGRAM. GOODBYE! 1) Do not use any library functions such as min () and max (). 2) Add comments to explain the algorithm of your program. 3) Keep your project coding clear with your own programming style.
Semester Exam Report
Each semester 3 exams are taken by each student. Create functions to
determine the class average, highest grade and lowest grade for each exam.
The requirements are -
1) Create a function to read in 3 grades for each student. A 2D array
int stuGrades [MAX_STUDENTS] [TOTAL_TESTS] must be used to hold all the grades
for each exam for all the students, where MAX STUDENTS and TOTAL TESTS are
defined as -
const int MAX STUDENTS=24;
//max students allowed
const int TOTAL TESTS=3;
//3-test per a student
const int TOTAL_NUM_STAT=3;
//AVG, MIN, MAX
//make sure to validate each grade. Grade must be in between 0 and 100.
void readStuGrades (int stuGrades [] [TOTAL_TESTS], int &numstu);
2) Create a function to print out the grades for all students.
void printStuGrades (int stuGrades [] [TOTAL_TESTS], int numStu);
3) Create a function to determine the class average, highest grade and lowest
grade for each exam.
void getExamAvgMinMaxGrade (int stuGrades [][TOTAL_TESTS], int numStu, int exam,
float savg, inté low, int& high);
4) Create a function to print out the results for each test.
void printExamOverview (int stuGrades [][TOTAL_TESTS], int numstu);
This function will call getExamAvgMinMaxGrade () to get the class average,
highest/lowest grade for each exam. Then it will save the data in a 2D array
defined as
float examstat [TOTAL_TESTS] [TOTAL_NUM_STAT];
For example, for the first exam -
examStat [0] [0] represents the class average for the first exam
examStat [0][1] represents the lowest grade for the first exam
examStat [0] [2] represents the highest grade for the first exam
Transcribed Image Text:Semester Exam Report Each semester 3 exams are taken by each student. Create functions to determine the class average, highest grade and lowest grade for each exam. The requirements are - 1) Create a function to read in 3 grades for each student. A 2D array int stuGrades [MAX_STUDENTS] [TOTAL_TESTS] must be used to hold all the grades for each exam for all the students, where MAX STUDENTS and TOTAL TESTS are defined as - const int MAX STUDENTS=24; //max students allowed const int TOTAL TESTS=3; //3-test per a student const int TOTAL_NUM_STAT=3; //AVG, MIN, MAX //make sure to validate each grade. Grade must be in between 0 and 100. void readStuGrades (int stuGrades [] [TOTAL_TESTS], int &numstu); 2) Create a function to print out the grades for all students. void printStuGrades (int stuGrades [] [TOTAL_TESTS], int numStu); 3) Create a function to determine the class average, highest grade and lowest grade for each exam. void getExamAvgMinMaxGrade (int stuGrades [][TOTAL_TESTS], int numStu, int exam, float savg, inté low, int& high); 4) Create a function to print out the results for each test. void printExamOverview (int stuGrades [][TOTAL_TESTS], int numstu); This function will call getExamAvgMinMaxGrade () to get the class average, highest/lowest grade for each exam. Then it will save the data in a 2D array defined as float examstat [TOTAL_TESTS] [TOTAL_NUM_STAT]; For example, for the first exam - examStat [0] [0] represents the class average for the first exam examStat [0][1] represents the lowest grade for the first exam examStat [0] [2] represents the highest grade for the first exam
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Arrays
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr