Python Input Statements You are considering buying a condominium in the Tidewater Condominium Complex and have decided to estimate the total costs involved in applying for a loan. Since….
Write a program to read the following hierarchy. Employee is derived into PermanentEmployees and DailyEmployees.
Write a program to read the following hierarchy. Employee is derived into PermanentEmployees and DailyEmployees. PermanentEmployees are derived into DepartmentalEmployees and CompanyEmployees. CompanyEmployees are derived into RegionalManagers and AreaManagers. DepartmentalEmployees are derived into Sales, Production, and HumanResource employees. Deﬁ ne a single array for storing all employee objects. Deﬁ ne a function Salary, which displays the salary (do not calculate salary; just display any value) of permanent employees alone. Use dynamic_cast to solve the problem. ( Hint: we cannot use virtual functions deﬁ ned in the Employee class here as DailyEmployees do not have salary functions deﬁ ned. We have to deﬁ ne salary as a virtual function in the class PermanentEmployees. We have to use Employee pointer to access the objects. Whenever it is valid to cast from Employee to PermanentEmployees, the object belongs to any of the descendants of PermanentEmployees class. dynamic_cast helps us to ﬁ nd this.)