Question: Write a program in c++ that has an employee class with -private pointer object which includes person information and is an object from person class

Write a program in c++ that

has an employee class with

-private pointer object which includes person information and is an object from person class

-***use pointers to define this variable from class person

-***use static variable for ID of employees in person class

-have getters, setters, constructor, calculate income based on working hours

-***have hourly pay vaiable as a static variable

in the main

instead of having a vector of employee objects

-have a dynamic array of employee objects and create this array with pointers

-first get the size of the array from user then create the array with that size and using pointers

-get information for employees from user

-store data into the array

-calculate income

-do not forget to delete the array that you created dynamically

I have been working on this for a while and am having troublet understanding it so if you could comment what is going on that would be superb thank you!

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!