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...

1 answer below »
Create 3 short python programs called square.py, rectangle.py and circle.py. One
will be for each room type.


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
Answered 9 days AfterJan 20, 2021

Answer To: MSIT 501/BMME 8050 Project #1 Description: You are working for a carpeting and flooring company. You...

Neha answered on Jan 20 2021
142 Votes
74755 - python basic code/circle.py
import math
name = input("What is the name of the customer?")

address = input("What is the address of the customer?")
diameter = float(input("What is the diameter of the room (in feet)?"))
print("Estimate for ", name)
print(address)
radius = diameter/2
area = math.pi*radius * radius
material = area*2
install = area * 1.5
print("Circular room with are of ",round(area,2),"square feet")
print("Estimated cost for flooring material is $", round(material,2))
print("Estimated cost for insatllation is $",...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here