Page 1 of 1

Write a C++ program. The program requires: Base class: student, with data member: (1) name (2) scholarship Derived from

Posted: Thu May 05, 2022 1:02 pm
by answerhappygod
Write A C Program The Program Requires Base Class Student With Data Member 1 Name 2 Scholarship Derived From 1
Write A C Program The Program Requires Base Class Student With Data Member 1 Name 2 Scholarship Derived From 1 (53.45 KiB) Viewed 24 times
Write a C++ program. The program requires: Base class: student, with data member: (1) name (2) scholarship Derived from student: freshman, with additional data member: score of calculus Derived from freshman: sophomore, with additional data members: scores of (1) electronics and (2) probability Derived from sophomore: junior, with additional data member: score of VLSI A student accepted by 1 group gets $200," + 200*2 accepted by 2 groups gets $600, +200*3 accepted by 3 groups gets $1200 and so on. Moreover, if there's only one student meet a group's all requirements, the group will give this student additional $100 as bonus. Second, for each subject, the top three students get $350, $250, $150 respectively. (Don't worry about the same score condition.) Last, for each grade, the student with the highest average score gets additional 30% of his/her current scholarship as bonus.
Input example: total number of students: 3 3 Andy F name: Andy, freshman C 60 calculus: 60 Ken S name: Ken, sophomore electronics: 95 E 95 P 69 probability: 69 C 80 calculus: 80 Jane J name: Jane, junior V 79 VLSI: 79 E 71 electronics: 71 P 80 probability: 80 C 75 calculus: 75 Output solution First, print out the students who meet the require- ments of each group. Then, print out each student's total amount of scholarship in descending order and the grade he/she is in. GroupA: Nick Ken Mango Ben Peter Group: Mango Zac Vivian Wendy Ben GroupC: Vivian Wendy GroupD: Mango GroupE: Vivian Mango : $2535 : $1550 Vivian J Wendy $1170 Ben 3 $1100 Nick $715 Zac $550 Ken 5 : $450 Chris J Peter 3 : $350 : $200 50 Sherry F F S