Question: Define a struct called Year with components numberOfCourses, an array marks [ ] , an array credits [ ] all of type int, and GPA

Define a struct called Year with components numberOfCourses, an array marks[], an array credits[] all of type int, and GPA of type float.Define a class called Student with private data members name of type string, level of type int, CGPA of type float, an array studyYear[] of type Year. The class also has the private member functions calculateGPA(int), and calculateCGPA(). The class has the public member functions set(int), getGPA(int), getCGPA(), print(), a default constructor, and constructor with parameters.

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 Programming Questions!