Everything calculates except for the last line: Total Cost of Paint Job. It gives a crazy number. Here is how the command prompt looks and my code is underneath. I also need to know how to round to hundredths but can probably find that on my own. Thank you.
--------------------------------------------------------------------------------
Paint Job Estimator
Enter the square footage you need to paint, then press enter
1000
Enter the price by gallons of paint you will use, then press enter
6
How many gallons of paint you will need: 8.69565
Your total paint cost will be: 52.1739
The number of hours for the job will be: 69.5652
The total amount of wages will be: 1391.3
The total price of your paint job will be: 6
Press any key to continue . . .
--------------------------------------------------------------------------------
//cout<<"How many gallons of paint you will need: "<<paintNeeded<<endl;
//cout<<"Your total paint cost will be: "<<allPaintCost<<endl;
laborHoursNeededAndWages(hoursNeeded, hoursWages, areaTP);
//cout<<"The number of hours for the job will be: "<<hoursNeeded<<endl;
//cout<<"The total amount of wages will be: "<<allWages<<endl;
totalPaintJobCost(paintCST, allWages, allJobCost);
//cout<<"The total price of your paint job will be: "<<allJobCost<<endl;
Hi,
Sorry I'm so new at this I don't know what you mean by code and output tags.
The user enters the price they pay. The information I had to work with was:
115 sq. ft. needs one gallon of paint and 8 hours of labor at $20.00 per hour.
I'm supposed to have the user input the area they want painted and the price they paid for a gallon of paint. Then the program is to calculate number of gallons needed, price of paint according to what they supplied, hours of labor, cost of labor, then the total cost of the job. That's the part I'm having trouble with, getting it to add the total wages and total price of paint.