Question: Please write this program as simple as possible, I'm learning Thanks. C++ Problem Description A wall needs to be painted. It has one window. Suppose

Please write this program as simple as possible, I'm learning Thanks. C++

Please write this program as simple as possible, I'm learning Thanks. C++

Problem Description A wall needs to be painted. It has one window. Suppose that one gallon of paint can paint 120 square feet Write a program that prompts the user to input the width and height of the wall and the width and height of the window. The program outputs the number of gallons of paint required to paint the wall (excluding the window, of course!). Input Specification All dimensions are non-negative, in feet. Output Specification Output the total area to paint and the number of gallons of paint required, using the formatting shown in the Sample Interaction below. Your program's output should terminate with one blank line. Sample Interaction $ clang++ -std=c++14 -Weverything labo2.cpp $ ./a.out This program computes gallons of paint required to paint a wall. Enter the WALL width and height (ft), separated by a space: 11.25 12 Enter the WINDOW width and height (ft), separated by a space: 35 Total area to paint (sq ft): 120 Total paint required (gals): 1 $ ./a.out This program computes gallons of paint required to paint a wall. Enter the WALLwidth and height (ft), separated by a space: 14 12 Enter the WINDOW width and height (ft), separated by a space: 35 Total area to paint (sq ft): 153 Total paint required (gals): 1.275

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!