Given the following code: #include #include using namespace…
Given the following code: #include #include using namespace std;class Student{public: void SetName(string studentName); void SetScore(int studentScore); string GetGrade();private: string name; int score;};void Student::SetScore(int studentScore){ score = studentScore;}string Student::GetGrade(){ string grade; if (score < 40) grade = "C"; else if (score < 70) grade = "B"; else grade = "A"; return grade;} What will the output of this program be? int main(){ Student stu1; stu1.SetScore(80); cout
Read Details