Define the class Student which has private members name, department, and mark. It has public members set(), getMark), get() (to get the student's name and department), print(), and a default...


Define the class Student which has private members name, department, and mark. It has public members set(),<br>getMark), get() (to get the student's name and department), print(), and a default parameterized constructor<br>(with default values

Extracted text: Define the class Student which has private members name, department, and mark. It has public members set(), getMark), get() (to get the student's name and department), print(), and a default parameterized constructor (with default values "" as a name, "" as a department, and 0 as a mark). Define a class called Section which has private members number (of type string), umberQStudents.(of type int), and a pointer p (of type Student). It has public members set(), print(), and a default parameterized constructor (with default values "" as a section number, and 0 numberOfStudents), and a destructor. The class also has a member function average() to find the section average, and a copy constructor. Write the definition of the two classes Student and Section with their implementations. Use the following driver: void output(Section); int main(_) { void output(Section u) { Y-print); Section abc: } abc.set("01", 3); abc.print); output(abc); return 0; Sample input / output: Enter information of section 01, it has 3 students for each student enter the name, department, and mark. Ali Physics 76 Omar Computer 92 Hassan Civil 83 Section 01 has 3 students, and mark average of 83.6667 Section 01 has 3 students, and mark average of 83.6667

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here