Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 windowsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started