Question: Please answer in c++ ! I need another outlook on how to assess this problem. Thank you! Lab 4 Due Date: Sep 26, 2018 Total
Please answer in c++ !
I need another outlook on how to assess this problem. Thank you!


Lab 4 Due Date: Sep 26, 2018 Total Points: 15 points The purpose of this lab is to practice working with basic and aggregate or composite classes. Part 1: Design a Course class that contains individual course information and has the following private attributes long string int courseNumber courseName numberOfCredits All class attributes must be private and accessed through public member functions You need to write the following public methods Default constructor that sets courseNumber to 0, courseName to ", and number ofCredits to 0 Overloaded constructor that takes 3 parameters used to initialize the 3 attributes - Set function(s) that set the objects data Print function that displays the object data in a neat fashion After you design your class, write a main program that instantiates 2 Course objects, sets and displays their information as described below: For the first obiect: 1. Ask the user to enter the course number, name and number of credits (the user should enter for example 21541, CS211, and 1 respectively 2. Create the object using the overloaded constructor (and the data from above) 3. Call the print function to print the object data. For example: Course Number: Course Name Number of Credits 1 21541 CS 211 For the second object: 1. Create the object using the default constructor 2. Call the print function to display the second object's data 3. Prompt the user to enter new data for the second object (for example 21345, CS331, and 3) 4. Call the set function(s) to set the object's attributes to the user input 5. Call the print function to display the new object data Note: You must divide your files into.cpp and .h file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
