function prototype

I am not sure what to put for display instructions and calculating the paycheck amount. Can anyone help me with this?

Q: this program asks the user to enter an employee's hourly rate and the number of hours worked, and calculates the amount of the employee's weekly paycheck.

please enter the number of hours that the employee worked (0 or greater): 25.5
Please enter the hourly wage for the employee (must be 0.00 or greater): 12.50

the employee's paycheck will be $318.75


// Preprocessor statements
#include <iostream>
#include <iomanip>
using namespace std;

// Function prototypes



// --------------- DO NOT EDIT, IN ANY WAY, THE CODE IN THE MAIN FUNCTION.
// Program starts here:
int main()
{

float hoursWorked, hourlyWage, paycheckAmount;

// Display the program information to the user.
displayInstructions();

do{
cout << "Please enter the number of hours that the employee worked (0 or greater): ";
cin >> hoursWorked;

if(hoursWorked < 0)
cout << "ERROR: Number of hours worked must be 0 or greater. Try again..." << endl << endl;

} while(hoursWorked < 0);

do{
cout << "Please enter the hourly wage for the employee (must be 0.00 or greater): ";
cin >> hourlyWage;

if(hourlyWage < 0.00)
cout << "ERROR: Hourly wage must be 0.00 or greater. Try again..." << endl << endl;

} while (hourlyWage < 0.00);

// Calculate the amount of the paycheck
paycheckAmount = calculatePaycheck(hoursWorked, hourlyWage);

// Display the results
cout << endl << endl;
cout << fixed << setprecision(2);
cout << "The employee's paycheck will be $" << paycheckAmount << "." << endl;


// End of program
return 0;
}
Dont Double Post! - http://www.cplusplus.com/forum/beginner/161035/

Do what I told you On your other post, then I will answer you. You only did the second thing I told you, now do the first.
Topic archived. No new replies allowed.