Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Case Studies In Business Data Bases

Authors: James Bradley

1st Edition

0030141346, 978-0030141348

More Books

Students also viewed these Databases questions

Question

2 What supply is and what affects it.

Answered: 1 week ago