//DISPLAY 15.7 Using Derived Classes #include #include "HourlyEmployee.h" #include "SalariedEmployee.h" using namespace std; const int SIZE=100; void PrintChecks (Employee* employees[], int len) { for (int i=0;iget_name( ) <print_check(); cout << endl; } } int main( ) { Employee* records[SIZE]; HourlyEmployee joe; joe.set_name("Mighty Joe"); joe.set_ssn("123-45-6789"); joe.set_rate(20.50); joe.set_hours(40); records[0]=&joe; SalariedEmployee boss("Mr. Big Shot", "987-65-4321", 10500.50); records[1]=&boss; PrintChecks (records,2); return 0; }