Question: For C++ -- THANK YOU! : Class CSI2017 has three private member variables: string name, int score, and char grade. Class CSI2017 has a public

For C++ -- THANK YOU! :

Class CSI2017 has three private member variables: string name, int score, and char grade. Class CSI2017 has a public constructor that accepts arguments for name and score, and sets their values.

Class CSI2017 has three public functions:

getName(): returns name of student

getGrade(): returns grade of student (A, B, C, D, F system)

getScore(): returns score of student.

Create and array of 5 elements that are objects of the class CSI2017. Sort array ascending by score. Display the sorted array with the name and the grade of each student.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!