Question: Consider a problem where you have asked a carpet contractor to visit your home and provide an estimate of how much it will cost to

 Consider a problem where you have asked a carpet contractor to
visit your home and provide an estimate of how much it will

Consider a problem where you have asked a carpet contractor to visit your home and provide an estimate of how much it will cost to lay carpet on the first floor of THE home. There are a few places that will not need carpeting, i.c., there is a bathroom, den, and garden, which don't need to be carpeted. The first floor is illustrated by the following figure. The dimensions of the first floor are L by W. You need to write a C program that will prompt the user to input the carpet cost per square foot, the length, and the width of the house, A1, B1, C1, h, and s. These values are all floating data types. Note: V3 = 1.732. Your program should calculate the area of the bathroom (rectangle), den (parallelogram), and garden (regular hexagon), first floor (rectangle), the total area of the first floor that needs carpeting, the total cost of the carpet, and output each to the console window. All units are in feet. You need to upload the c files (source codes). L Den w w Garden A1 B1 Bathroom

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!