Strugelling with Void function

Hi guys. I really do not know what I am doing wrong can some one please give some idea to fix this program.I am struggling with the void function .

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#include <iostream>
#include <cstdlib>

using namespace std;

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<<"*";
    }
    }
    void computePaycheck(float rateP , int timeP )
    {
    float grossPay, netpay;
    grossPay=rateP*timeP;
    netpay=grossPay-(0.15*grossPay);
    cout<<"The netpay is R"<<netpay<<endl;
    }

int main()
{
    float payRate;
    int hours;
    cout<<setprecision(2) <<fixed;
    cout<<"Welcome to the Pay Role"<<endl;
    printDescription();

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

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

   computePaycheck(payRate, hours)

    cout<<"Hope you enjoyed this program";

    return 0;
}

Include <iomanip>
and in line 46 you forgot ;
Thanks a lot
Topic archived. No new replies allowed.