#include <iostream>
using namespace std;
int main()
// Constants for the area of the door, windows, and bookshelf
const double doorArea = 20.0; // Assuming door size is 20 square feet
const double windowArea = 15.0; // Assuming each window size is 15 square feet
const double bookshelfArea = 30.0; // Assuming bookshelf size is 30 square feet
// Constant for paint coverage
const double paintCoverage = 120.0; // Coverage in square feet per gallon
// Variables for the room dimensions
double length, width, height;
// Input room dimensions
cout << "Enter the length of the room (in feet): ";
cin >> length;
cout << "Enter the width of the room (in feet): ";
cin >> width;
cout << "Enter the height of the room (in feet): ";
cin >> height;
// Calculate the total surface area of the four walls
double totalWallArea = 2 * height * (length + width);
// Calculate the total area to subtract (door, windows, bookshelf)
double totalNonPaintArea = doorArea + 2 * windowArea + bookshelfArea;
// Calculate the area that needs to be painted
double paintArea = totalWallArea - totalNonPaintArea;
// Calculate the amount of paint needed
double paintNeeded = paintArea / paintCoverage;
// Output the amount of paint needed
cout << "The amount of paint needed to paint the room is: " << paintNeeded << " gallons";