Electrical and Computer Engineering
9
UAH
CPE 112
Payroll Program
•//*********************************************
•// Payroll program
•// This program computes each employee’s wages and the
•// total company payroll
•//**********************************************
•
•#include <iostream>
•#include <fstream>
•
•using namespace std;
•
•void CalcPay (float, float, float&);
•
•const float MAX_HOURS = 40.0; // Maximum normal hours
•const float OVERTIME = 1.5;   // Overtime pay factor
•
•