Semester Exam Report Each semester 3 exams are taken by each student. Create functions to determine the class average, h
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Semester Exam Report Each semester 3 exams are taken by each student. Create functions to determine the class average, h
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 exan for all the students, where MAX_STUDENTS and TOTAL_TESTS are defined as - const int MAX_STUDENTS-24; 7/max students allowed const int TOTAL_TESTS=3; 1/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 Snumstu); 2) Create a function to print out the grades for all students. void printstuGrades (int studrades [] [TOTAL_TESTS), int numstu); 3) Create a function to determine the clasa average, highest grade and lowest grade for each exam. void getExamAvgMinMaxGrade (int stuGrades[//TOTAL_TESTS), int numstu, int exam, float savg, int& low, inte 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 getExamAgMinMaxGrade () 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_TESTS1 (TOTAL_NUM_STAT For example, for the first exam - examstat[0][0] represents the class average for the first exam examstat [011) represents the lowest grade for the first exam examStat[0112) represents the highest grade for the first exam
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!