Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

7th edition

978-1111825911, 1111825912, 978-1133684374, 1133684378, 978-111182591

More Books

Students also viewed these Databases questions