void function

#include <iostream>
#include <cstdlib>


using namespace std;

void printDescription()

float computePaycheck(float,int)

int main()
{
float payRate;
float grosPay;
float netPay;
int hours;

cout<<"Welcome to the Pay Role"<<endl;

printDescription();

cout<<"Please enter the pay per hour"<<endl;
cin>>payRate;
cout<<endl;

cout<<"Please input the number of hour work"<<endl;
cin>>hours;
cout<<endl;


grosPay=computePaycheck(payRate*hours)
netPay=grosPay-0.15*grosPay

cout<<"The net pay is R ";
cin>>netPay;
cout<<endl;

cout<<"Hope you enjoyed this program";

return 0;
}

void printDescription()
{

for(int i=0;i<51;i++)
{
cout<<"*";
}

cout<<endl<<"This program takes two numbers(pay rate and hours)" <<endl;
cout<<"and outputs the netpay."<<endl;

for(int j=0;j<51;j++)
{
cout<<"*";
}
}
float computePaycheck(float rate,int time )
{

return rate*time;

}


Please can you help with error on line 9
Please edit your post so all of your code is between

[code]code tags[/code]

http://www.cplusplus.com/articles/jEywvCM9/

1
2
3
void printDescription()

float computePaycheck(float,int)


Neither of these end with a semicolon.
Topic archived. No new replies allowed.