Just an update, thanks to everyone who helped. Here's the finalized code. This one is solved
/*****************************************************
* COSC 230 - Structured Programming
* Chapter 7: Programming Exercise 1
* Apr. 4, 2007
*
* Discription:
* blah
******************************************************/
//header files
#include <iostream>
#include <iomanip>
using namespace std ;
//function prototypes
void initialize ( int& , int& , char& ) ;
void getHoursRate ( double& , double& ) ;
double payCheck ( double& , double& ) ;
void printCheck ( double , double, double ) ;
void funcOne ( double, int, int ) ;
void nextChar ( char ) ;
int main()
{
int x ;
int y ;
int w ;
char z ;
double rate ;
double hours ;
double amount ;
initialize( x , y , z ) ; //test initialize-func.
getHoursRate(hours, rate) ; //test initialize-func.
amount = payCheck( hours, rate ) ; //initialize amount to paycheck-func.
cout << "*** Inside payCheck-function ***" << endl << payCheck( hours , rate ) << endl ; //test payCheck-func.
printCheck( hours, rate, amount ) ; //test printCheck-func.
funcOne( w, x, y ) ; //test funcOne-func.
nextChar ( z ) ; //test nextChar-func.
}
void initialize ( int& x, int& y, char& z )
{
x = y = 0 ;
z = ' ' ;
cout << "*** Inside initialize-function ***" << endl ;
cout << "The values of 'x' and 'y', respectively are: " << x << " and " << y << endl ;
cout << "The character stored in z is: " << z << "(space character)" << endl << endl ;
}//end void initialize
void getHoursRate ( double& hours , double& rate )
{
cout << "Hours worked: " << flush ;
cin >> hours ;
cout << "Rate: " << flush ;
cin >> rate ;
cout << endl << "*** Inside getHoursRate-function ***" << endl << endl ;
cout << "The values of 'hours' and 'rate', respectively are: " << hours << "\t" << rate << endl << endl ;
}//end getHoursRate
double payCheck ( double& hours, double& rate )
{
double pay ;
int ot ;
if ( (hours - 40 <= 0 ) )
pay = rate * hours ;
else
{
ot = hours - 40 ;
pay = (40 * rate) + (ot * rate * 1.5) ;
}
return pay ;
}//end double payCheck
void printCheck ( double hours , double rate , double amount )
{
cout << "*** Inside printCheck-function ***" << endl ;
cout << setprecision(2) << fixed << showpoint << setfill('.') ;
cout << "Hours" << setw(20) << right << "Rate" << setw(25) << right << "Amount Due" << endl ;
cout << hours << setw(15) << "$" << rate << setw(15) << "$" << amount << endl << endl ;
}//end void printCheck
void funcOne ( double in, int x, int y )
{
cout << "Input a value: " << flush ;
cin >> in ;
cout << endl ;
x = x * 2 + ( y - in ) ;
cout << "*** Inside funcOne-function ***" << endl ;
cout << "The value of 'x' is: " << x << endl << endl ;
}//end void funcOne
void nextChar ( char ch )
{
cout << "*** Inside nextChar-function ***" << endl ;
cout << "Initial character stored in 'ch' is: " << ch << endl ;
ch = ch++ ;
cout << "The character stored in 'ch' after increment is: " << ch << endl << endl ;
}//end nextChar