Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

You need to calculate the number of gallons of paint you need and cost of painti

ID: 3636807 • Letter: Y

Question


You need to calculate the number of gallons of paint you need and cost of painting the walls and ceiling of a rectangular room, given the room's length, width, and height in feet, the number of square feet one gallon of paint can cover, and the number of coats of paint you will apply.
For simplicity, assume there are no windows and the door will also be painted the same color.
Remember that you cannot buy part of a gallon (hint: what is the correct data type for gallons of paint).
Your program should allow the user to input length, width, and height, the number of square feet one gallon can cover, the number of coats of paint to be applied, and the cost of one gallon of paint, and then should give the number of gallons needed and the total cost to paint the room.
Remember to use the template you have been given for a program and to WRITE YOUR PSEUDOCODE FIRST.

Explanation / Answer

#include using namespace std; int main(){ double length; double width; double height; double sqFtPerGallon; double costPerGallon; coutlength; cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote