Write a program that can enter marks for number of students and calculate their Total and class
average, with the following format
ID (int), First (double), Second (double) and Final ( double).
stNum (int) can be calculated during the while loop;
stu_sum ( double) and grade ( Char);
The Grades are: A for 90’s, B for 80’s, C for 70’s, D for 60’s and F for less than 60.
Use while loop to ask if there is more students to enter. Use the switch statement to find the grade.
Use the following functions to find
1. Int Enter_ID(); to enter the student ID number;
2. double Enter_Marks(); to enter the student marks one by one;
3. double student_sum(double first, double second, double final); to find the total sum of the
4. double ClassAverage(duble class_total, int stNum); to find the class average;
5. char Grade(double stu_sum); to find the grade using switch statement;
6. void Print(double first, double second, double final, double st_sum, char grade); to print the
student ID and marks
St_Nm ID First Second Final Average Grade
1 20071156 15.5 16.5 30.1 62.1 D
Class average for 10 students is: 72.5
The moment you’ve entered the education system is the moment you start to realize that, although studying is extremely important,…
APPROVED BY CLIENTS
My English assignment turned out to be absolutely amazing. This is the best Homework helper thus far. I will continue to use this service as well as refer my friends and family. Thank you guys once again for your fantastic work.