/* Filename: aboveavg.cpp Author: Br. David Carlson Date: January 24, 1998 Last Revised: September 24, 2017 This program reads from the keyboard the data for a series of employees. (This data consists of each employee's first and last name, ID number, and wage rate.) Data entry is ended when the user enters CTRL z in Windows or CTRL d is Linux. The program calculates and prints the average wage rate and then prints all employee information on those employees who earn over the average. To compile this program you also need: EmployeeSimple.h, EmployeeSimple.cpp, EmployeeSimpleArray.h, and EmployeeSimpleArray.cpp */ #include "EmployeeSimpleArray.h" int main(void) { EmpSimpleArrayType EmpArray; int EmpCount; float AvgWageRate; char Reply; LoadArray(EmpArray, EmpCount); AvgWageRate = AverageRate(EmpArray, EmpCount); cout << endl << endl << endl << "The average wage rate for all employees was: " << setw(10) << AvgWageRate << endl << endl; cout << "Press g to go on: "; cin >> Reply; cout << endl << "Employees with wage rates above average:" << endl; PrintAboveAvg(EmpArray, EmpCount, AvgWageRate); return 0; }