question archive Consider a class named GraduateCourse that includes Three data members i

Consider a class named GraduateCourse that includes Three data members i

Subject:Computer SciencePrice:6.89 Bought3

Consider a class named GraduateCourse that includes

  • Three data members i.e.
  • courseID (e.g. CEN2012),
  • courseName (e.g. OOP),
  • creditHours (e.g. 3 or 4), and
  • courseFee (e.g. Rs. 10,000).
  • parameterized constructor to initialize data members with values specified by the user

Derive a class named ResearchCourse from Course class, which contains

  • An additional data field named experimentFee
  • parameterized constructor to initialize its own data member along with data members of the base class inherited in derived class
  • ResearchCourse class also contains a member function named setExperimentFee to modify the value of its own data field
  • A function named display to show the values of its own attribute along with the attributes of its base class
  • A function named totalFee to display the value of aggregated fee (course fee + experiment fee) for a particular course object

Implement both classes and in the main() function, instance of ResearchCourse class. Invoke appropriate functions to display all attribute values as well as the total fee for this particular instance.

Option 1

Low Cost Option
Download this past answer in few clicks

6.89 USD

PURCHASE SOLUTION

Option 2

Custom new solution created by our subject matter experts

GET A QUOTE

rated 5 stars

Purchased 3 times

Completion Status 100%