Question: Write a program that produces the output below Define a struct called Course that has the components code, title, grade (of type string), credit, and

 Write a program that produces the output below Define a struct
called Course that has the components code, title, grade (of type string),
Write a program that produces the output below

Define a struct called Course that has the components code, title, grade (of type string), credit, and cost of type integer). Define a struct called Finance that has the components type (of type string), and amount (of type integer). Define a class called Student that has private members id, name, numberOfCourses, the array listOfCourses[30] of struct variables of type Course, numberOfFinances of type integer, the array listOfFinances[5] of struct variables of type Finance, and GPA of type float. The class also has the public members set(string, string), print(), calculateGPAO, findFinance(), and a default parameterized constructor with default values "12345678" and "Omar Ali as the student id and name. To calculate the tuition fees of each course, multiply the number of credits by the cost of that course. Save the two structs and the class definitions in the file Studenth Implement the member functions of the class in the file StudentImp.cpp Save the following driver in the file Student.cpp int main() { Student one; one.print(); one.set("87654321", "Ali Omar"); one.print(); return 0

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!