Question: Create a class called Student that has the following private member variables: string name; int score; The class Student has following public member functions: void

Create a class called Student that has the following private member variables:

string name; int score;

The class Student has following public member functions:

void setname(string s) // sets the name of the student. string getname() // returns the name of that student . void setscore(int sc) // sets the total score for the student char getgrade() // displays the grade of the student

Use class Student in a client program (main function). Create three student objects, display the name of each student and the grade he/she received.

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!