Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

( please write in python code for answer below: ) You are working for a carpeting and flooring company. You need a program to create

(please write in python code for answer below:)
You are working for a carpeting and flooring company. You need a program to
create an estimate for customers. There are three types of rooms that customers
might have: square, rectangle and circle. Yes, some people have houses with rooms
that are circles.
The program should ask for the customers name and address. Then ask for the
dimensions of the room, in feet. It should then determine the cost to put flooring in
the room.
We compute flooring based upon the area of the room in square feet. Flooring
material costs $2.00 per square feet and installation costs $1.50 per square foot.
The equations for calculating the square footage of rooms are as follows:
Square: area = side1^2
Rectangle: area = side1* side2
Circle: area = radius ^2* pi
Once the user has entered the information, the program should print out the
customer information. Then it should print the total square feet in the room
followed by the estimate for the materials and installation costs. Finally it should
print the total cost. See sample input/output below.
Create 3 short python programs called square.py, rectangle.py and circle.py. One
will be for each room type

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

Databases Illuminated

Authors: Catherine M. Ricardo, Susan D. Urban, Karen C. Davis

4th Edition

1284231585, 978-1284231588

More Books

Students also viewed these Databases questions