Question: using C program a. Fill in the missing statements (the comments tell you where to fill in) so that the program does what it is

 using C program a. Fill in the missing statements (the comments

using C program

a. Fill in the missing statements (the comments tell you where to fill in) so that the program does what it is supposed to. Compile and run the program and correct any errors. Sample output: Enter the length of the room in ft:12 Enter the width of the room in ft:9 Enter the height of the room in ft: 7 0.840 gallons of paint are needed to paint a room 9 feet wide by 12 feet long by 7 feet high. b. Save your previous program as Paint2.c to tackle the next task: c. Suppose the room has doors and windows that don't need painting. Ask the user to enter the number of doors and number of windows in the room, and adjust the total square feet to be painted accordingly. Assume that each door is 20 square feet and each window is 15 square foct. Sample output: Enter the length of the room in ft:12 Enter the width of the room in ft:9 Enter the height of the room in ft : 7 How many doors are in the room? 1 How many windows are in the room? 3 0.654 gallons of paint are needed to paint a room 9 feet wide by 12 feet long by 7 feet high with 1 doors and 3 windows

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!