write a program that manages grades.The program include the following. (a). writ
ID: 3661399 • Letter: W
Question
write a program that manages grades.The program include the following.
(a). write a function that prompts the users to enter the student information having the number, name, and grade of one course. need to enter at least 10 students
(b). write a function that modifies a grade of the given student.
(c). write a function that displays the student information with the maximum and the minimum grades repectively;
(d).write a function that computes the average of the course.
(e).write a function that obtains the number of students each group that is divided according to the following forms:
grade<60
60 <= grade < 69
70 <= grade < 79
80 <= grade < 89
90 <= grade < 100
(f) write a function that outputs the grades.
write a menu to choose the above functions in a test program. The format of the main menu is as below:
The main menu
1: input the student information
2:modify the student grades
3: Display the students with the maximum and the minimum grade
4:compute the average
5: Grouping the students
6:display the Gradebook
7:exit
Explanation / Answer
//Menu driven program to calculate the student grade #include #include #include #include class student { int rollno; char name[50]; int p_marks, c_marks, m_marks, e_marks, cs_marks; float per; char grade; void calculate(); //function to calculate grade public: void getdata(); //function to accept data from user void showdata(); //function to show data on screen void show_tabular(); int retrollno(); }; //class ends here void student::calculate() { /* calculate the average /* per=(p_marks+c_marks+m_marks+e_marks+cs_marks)/5.0; if(per>=60) grade='A'; else if(per>=50) grade='B'; else if(per>=33) grade='C'; else grade='F'; } void student::getdata() { coutrollno; coutRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.