Question: For the week 2 assessment, create a C++ program using Visual Studio that could be used by a college to track its courses. In this

For the week 2 assessment, create a C++ program using Visual Studio that could be used by a college to track its courses. In this program, create a CollegeCourse class includes fields representing department, course number, credit hours, and tuition. Create a child (sub class) class named LabCourse, that inherits all fields and methods from the the CollegeCourse class, includes one more field that holds a lab fee charged in addition to the tuition.

Create appropriate functions for these classes: default constructors, set data and show data. Use the inherited methods everywhere possible! Avoid duplication of code. Write a main() function that instantiates and uses objects of each class.

Compile this application using Visual Studio and run it to make sure it is error free. Please copy and paste ALL of your C++ code in a text file or files.

This is for C++

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!