stuck with creating a paking program
#include<iostream>
#include<iomanip>
using namespace std;
const double enter_park = 2.00;
const double after_three_hours =0.50;
double calculateCharges(int hours, double cost, double a);
int main()
{
double cost;
double hours;
double a;
double b;
double c;
cout << fixed << showpoint;
cout << setprecision (2);
cout << "Enter the hours that the car spent in the parking lot.";
cin >> b;
calculateCharges(double b, double c, double a);
cout << b << " $" <<c << endl;
cin >> hours;
calculateCharges (double b,double c,double a);
cout << b <<" $" <<c <<endl;
return 0;
}
double calculateCharges(int hours, double cost,double a)
{if (hours <= 3)
enter_park;
else
a=hours - 3;
cost = enter_park + after_three_hours * a;
if (hours <= 12)
cost = 10.00;
return cost;
}
What do I need to do to get this to run right
Jess