//this program calculates gross pay.
#include <iostream>
#include <iomanip>
using namespace std;

//global constants
const double PAY_RATE = 22.55;		//hourly pay rate
const double BASE_HOURS = 40.0;		//max non-overtime hours
const double OT_MULTIPLIER = 1.5;	//overtime multiplier

//function prototypes
double getBasePay(double);
double getOvertimePay(double);

int main()
{
	double hours,		//hourly worked
		basePay,		//base pay
		overtime = 0.0	//overtime pay
		totalPay;		//total pay
		
	//get the number of hours worked.
	cout << "How many hours did you work? ";
	cin >> hours;
	
	//get the amount of base pay.
	basePay = getBasePay(hours);
	
	//get overtime pay, if any.
	if (hours > BASE_HOURS)
		overtime = getOvertimePay(hours);
		
	//calculate the total pay.
	totalPay = basePay +overtime;
	
	//set up numeric output formatting.
	cout << setprecision(2) << fixed << showpoint;
	
	//display the pay.
	cout << "Base pay: $" << basePay << endl;
		 << "Overtime pay $" << overtime << endl;
		 << "Total pay $" << totalPay << endl;
	return 0;
}

//***********************************************
// the getBasePay unction accepts the number of	*
// hours worked as anargument and returns the	*
// employee's pay for non-overtime hours.		*
//***********************************************

double getBasePay(double hoursWorked)
{
	double BasePay;		//to hold base pay
	
	//determine base pay
}
