Question: will give thumbs up directly after recieving correct answer. -Complete Part (A) from the following given points, & Solve Part(B) in the main. use C++

will give thumbs up directly after recieving correct answer.
-Complete Part (A) from the following given points, & Solve Part(B) in the main.
use C++
 will give thumbs up directly after recieving correct answer. -Complete Part

Part2 A. 1 Create a class Education Academy that has an array of pointers of type Employee, a location of type string and an establishment Date. The previous exercise explains three classes that are fully implemented: Employee, Academic and Administrator tinclude using namespace std; class Education Academy public: EducationAcademy (int size); // size is number of employees in the Education Academy EducationAcademy (int size, string Loc, const Date D): -EducationAcademy(); void Read Current Staff 0); double Get TotalSalaries(); void Print_Current_Staff (): Employee . ReadOneEmployee(); private: Employee Current_Staff [100]; to allocate a maximum of 100 Employees int no of_Current Staff; it should not exceed 100 string Location; default value "PSUZ Date start_Date; default 1/1/2000 In ReadOneEmployee function the user will have two choices 'A' for Academic and 'B' for Administrator. Based on this choice the user will enter data and allocate an object based on that and return its address. Read_Current_Staff function will use the array of pointers Current_Stoff and call ReadOneEmployee a number of times based on no_of_Current_Staff. This means that a pointer will be pointing at the object created by ReadOne Employee function. Constructors will initialize the data attributes. Make sure the no_of_Current_Staff does not exceed 100, make it zero if incorrect size was used. Hint: call Read_Current_Staff function. Print_Current_Staff function will print the details of objects allocated by Current_Staff that have salaries between 2000 and 5000. Destructor will deallocate the objects according to the following order. Deallocate all objects with salaries below 1000, followed by objects with salaries below 2000, and then deallcaote all objects that have salaries above 5000. Then count the number of remaining objects } . Part 2B. Write a program that defines an array of Education Academy pointers of size 5 named OOP_academies. Based on user input allocate dynamically the number of academies according to the size entered by the user for each Education Academy object. Print all employees of the allocated OOP_academies. Do any necessary deallocations. Part2 A. 1 Create a class Education Academy that has an array of pointers of type Employee, a location of type string and an establishment Date. The previous exercise explains three classes that are fully implemented: Employee, Academic and Administrator tinclude using namespace std; class Education Academy public: EducationAcademy (int size); // size is number of employees in the Education Academy EducationAcademy (int size, string Loc, const Date D): -EducationAcademy(); void Read Current Staff 0); double Get TotalSalaries(); void Print_Current_Staff (): Employee . ReadOneEmployee(); private: Employee Current_Staff [100]; to allocate a maximum of 100 Employees int no of_Current Staff; it should not exceed 100 string Location; default value "PSUZ Date start_Date; default 1/1/2000 In ReadOneEmployee function the user will have two choices 'A' for Academic and 'B' for Administrator. Based on this choice the user will enter data and allocate an object based on that and return its address. Read_Current_Staff function will use the array of pointers Current_Stoff and call ReadOneEmployee a number of times based on no_of_Current_Staff. This means that a pointer will be pointing at the object created by ReadOne Employee function. Constructors will initialize the data attributes. Make sure the no_of_Current_Staff does not exceed 100, make it zero if incorrect size was used. Hint: call Read_Current_Staff function. Print_Current_Staff function will print the details of objects allocated by Current_Staff that have salaries between 2000 and 5000. Destructor will deallocate the objects according to the following order. Deallocate all objects with salaries below 1000, followed by objects with salaries below 2000, and then deallcaote all objects that have salaries above 5000. Then count the number of remaining objects } . Part 2B. Write a program that defines an array of Education Academy pointers of size 5 named OOP_academies. Based on user input allocate dynamically the number of academies according to the size entered by the user for each Education Academy object. Print all employees of the allocated OOP_academies. Do any necessary deallocations

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!