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.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 20PE: When you borrow money to buy a house, a car, or for some other purpose, you repay the loan by making...
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr