Question: c++ program Lab Objectives Relationship between base class and derived class constructors and destructors Practicing on friend function, Lab Instructions Create a new folder on

c++ program  c++ program Lab Objectives Relationship between base class and derived class
constructors and destructors Practicing on friend function, Lab Instructions Create a new
folder on desktop and name it by your ID-FirstName-LastName-Labi". Make sure to

Lab Objectives Relationship between base class and derived class constructors and destructors Practicing on friend function, Lab Instructions Create a new folder on desktop and name it by your ID-FirstName-LastName-Labi". Make sure to save your solutions in this folder You must upload your solutions to e-learning as follows: Each project you create it as a zip file. A text file associated with each project contains a copy of the code. Page 1 of 3 Lab Exercises This assignment consists of three exercises. You should submit your code in seven files on the e-learning three header file (h) for two classes, four CPP source files (.cop) for classes implementation and the main function. Also, in your header file, you must prevent multiple file inclusion. Your code should use separate implementation of the class. Lab Exercises Person (-) name Type: string address Type: string -) birthYear Type: Int .) national No Type:int (+) Parameterized Constructor (+) Setters () Getters (..) printDetailsvold KeyNote Speaker Participant - Award Type: float Session Type: string Topic Type: string NoPub Papers Type: int (+) Parameterized Constructor (+) Parameterized Constructor (*) Getters (e) Getters () Setters (0) Setters NOTE 1: In all of your code, do not forget to validate all user input and to make all functions that do not modify the class constant not derived class. Exercise 1 - Define Person Class Exercise Objectives Define class Problem Description Implement class Person. The parametrized constructor initializes the values of all data members. Function print Details should print information about the person in a well-formatted manner. Page 2 of 3 Exercise 2 - Define KeyNoteSpeaker Class Exercise Objectives Define class Problem Description Declare and implement KeyNote Speaker, which inherits from class Person. Note the following: The award data member represents the award of the keynote speaker in dollar. The topic data member can be either "D", "Networks" or "SWE" Function getName in the base class should be overridden to return the "Keynote Speaker:" + name. Function printDetails of the base class should be overridden to print the additional information about the award and topic Exercise 3 - Define Participant Class Exercise Objectives Define class Problem Description Declare and implement Participant, which inherits from class Person. Note the following: The session data member can be Data Science, Software Engineering, or Computer Networks Function printDetails of the base class should be overridden to print the additional information about the session and number of published papers. Exercise 5 - Implement a Friend Function Problem Description Write a friend function (checkNoPapers) to the Participant class to return True if the participant's number of published papers is more than or equals to 15. Otherwise, it returns False. Exercise 4 - Implement Main Write the main function as follows. Create an object of type KeyNoteSpeaker (KNS), assign the appropriate values for each data member Create an object of type Participant (PAR), assign the appropriate values for each data member. Print the details of both objects. The conference organizers wants to invite PAR to be a keynote speaker in the conference, you are asked to check the session and NoPubPapers of PAR o If PAR's session is Data Science then assigns the topic to "DS". If it is Software Engineering then assigns the topic to "SWE. Otherwise, PAR's topic is "Networks". If PAR's NoPubPapers is greater than or equal to 15 then set the award to 600, otherwise, the award is 500. Declare a new KeyNoteSpeaker object called (newKNS) to invite PAR as a keynote speaker

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!