MSIT 501/BMME 8050 Project #1 Description: 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 customer’s 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. See some sample runs on following pages.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
MSIT 501/BMME 8050
Project #1

Description:
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 customer’s 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.

See some sample runs on following pages.














 
 
 
 
 
 
 


Below are some sample runs of these 3 programs:
-------------------------------------------------------------
Sample runs for square.py
-------------------------------------------------------------

Sample run 1
-------------------------

What is the name of the customer? Frank Mitropoulos
What is the address of the customer? 123 Main St.
What is the size of 1 side of the room (in feet)? 20

Estimate for Frank Mitropoulos
123 Main St.

Square room with area of 400.00 square feet
Estimated cost for flooring material is $800.00
Estimated cost for installation is $600.00
Total estimate is $1400.00

Sample run 2
-------------------------

What is the name of the customer? Mary Jones
What is the address of the customer? 300 Elm St.
What is the size of 1 side of the room (in feet)? 12.5

Estimate for Mary Jones
300 Elm St.

Square room with area of 156.25 square feet
Estimated cost for flooring material is $312.50
Estimated cost for installation is $234.38
Total estimate is $546.88

 
 
 
 
 
 
 

-------------------------------------------------------------
Sample runs for rectangle.py
-------------------------------------------------------------

Sample run 1
-------------------------

What is the name of the customer? Frank Mitropoulos
What is the address of the customer? 123 Main St.
What is the size of the length of the room (in feet)? 10
What is the size of the width of the room (in feet)? 12

Estimate for Frank Mitropoulos
123 Main St.

Rectangular room with area of 120.00 square feet
Estimated cost for flooring material is $240.00
Estimated cost for installation is $180.00
Total estimate is $420.00

Sample run 2
-------------------------

What is the name of the customer? Beth Miller
What is the address of the customer? 300 Oak Dr.
What is the size of the length of the room (in feet)? 12.4
What is the size of the width of the room (in feet)? 18.5

Estimate for Beth Miller
300 Oak Dr.

Rectangular room with area of 229.40 square feet
Estimated cost for flooring material is $458.80
Estimated cost for installation is $344.10
Total estimate is $802.90

 
 
 
 
 
 
 

-------------------------------------------------------------
Sample runs for circle.py
-------------------------------------------------------------

Sample run 1
-------------------------

What is the name of the customer? Bill James
What is the address of the customer? 400 Pine Way
What is the diameter of the room (in feet)? 10

Estimate for Bill James
400 Pine Way

Circular room with area of 78.54 square feet
Estimated cost for flooring material is $157.08
Estimated cost for installation is $117.81
Total estimate is $274.89

Sample run 2
-------------------------

What is the name of the customer? Sally Smith
What is the address of the customer? 200 Poplar Lane
What is the diameter of the room (in feet)? 20.5

Estimate for Sally Smith
200 Poplar Lane

Circular room with area of 330.06 square feet
Estimated cost for flooring material is $660.13
Estimated cost for installation is $495.10
Total estimate is $1155.22
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Program on Numbers
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education