I can do it!
2008-04-08 12:32:31 UTC
this is my code:
#include
#include
using std::cout;
using std::cin;
using std::endl;
using std::setprecision;
using std::fixed;
//function prototypes
void getInput(double &);
void calcBonus(double, double, double &);
void displayBonus(double);
int main()
{
//declare constant and variables
const double RATE = .1;
double sales = 0.0;
double bonus = 0.0;
//call funtions to get input
//call functions to calculate and display bonus amount
getInput(sales);
calcBonus(sales, bonus, RATE);
displayBonus(bonus);
//display output item
cout << fixed << setprecision(2);
return 0;
} //end of main function
//*****function definitions*****
void getInput(double &sales)
{
//enter input items
cout<<"Enter sales: ";
cin>>sales;
}//end of getInput function