#include <iostream>
#include <iomanip>
using namespace std ;
void initialize ( int& , int& , char& ) ;
void getHoursRate ( double& , double& ) ;
double payCheck ( double& , double& ) ;
void printCheck ( double , double, double ) ;
int main()
{
int x ;
int y ;
int w ;
char z ;
double rate ;
double hours ;
double amount ;
cout << initialize( x , y , z ) << endl ; //error is here
cout << getHoursRate() << endl ;
cout << payCheck( hours , rate ) << endl ;
printCheck( hours, rate, amount ) << endl ;
cout << funcOne( w, x, y ) ; //confusion starts here
cout <<
}
void initialize ( int& x, int& y, char& z )
{
x = y = 0 ;
z = ' ' ;
}
void getHoursRate ( double& hours , double& rate )
{
cout << "Hours worked: " << endl ;
cin >> hours ;
cout << "Rate: " << endl ;
cin >> rate ;
}
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 ;
}
void printCheck ( double hours , double rate , double pay )
{
cout << setprecision(2) << fixed << showpoint << setfill('.') << left ;
cout << "Hours" << setw(15) << "Rate" << setw(15) << "Amount Due" << endl << endl ;
cout << hours << setw(15) << "$" << rate << setw(15) << "$" << pay << endl ;
}
void funcOne ( double in, int x, int y ) //number 2 in my post
{
cout << "Input a value: " << endl ;
cin >> in ;
x = x * x + ( y - in ) ;
}
char nextChar ( char ch ) //number 1 in my post
{
ch = ch++ ;
}