Line 10 keeps on getting a Type "Double" Unexpected
Any idea what the problem is?
#include<iostream>
using namespace std;
double grossPay(double a, double b);
int main(){
double a,b;
cout << "Hours worked this week and hourly rate of pay";
cin >> a >> b;
cout << double grossPay(a,b);
system("pause");
}
double grossPay(double a, double b)
{
if(a<0 || a>168 || b<0){
cout << "You must enter a number that is no less than 0 and no greater than 168" << endl;
system("pause");
exit(EXIT_FAILURE);
}else if ( a>40 ){
((a-40) * (b) * (a) * (1.5)) == grossPay(a,b);
}else
(a * b) == grossPay(a,b);
return grossPay(a,b);
}