Help with this :)

If you get a ticket for speeding, your fine is based on how much your speed exceeded the speed limit by. Suppose the fine is based on the following schedule:
Amount over limit: Fine
Greater than 0 but less than or equal to 10 $ 80
Greater than 10 but less than or equal to 20 $250
Greater than 20 $500
Complete the program below to input the legal speed limit and the speed the driver was driving at. Compute and output the fine. Complete getData to input the legal speed and driver’s speed. Complete calcFine to calculate the fine. Add the prototypes (i.e. function declarations).

Make no changes to main()!
#include <iomanip>
using namespace std;

//Function declarations

______________________________________________________

______________________________________________________
int main (void)
{
double speedLimit, driverSpeed, fine;

//call function to input data
getData(speedLimit, driverSpeed);

//Call function to calculate the fine
fine = calcFine(speedLimit, driverSpeed);
cout << setprecision(2) << fixed;
cout << "Your fine is: $ " << fine << endl;
return 0;
}//main
//*******************Define functions*******************
what is the question ?
Topic archived. No new replies allowed.