Uploaded by social social

ruddhalab01

advertisement
# Name: Dhanush Rudraraju # Course: CS 1160
# Assignment: Lab 01
# Date Assigned: 1/17/2023
# Filename: ruddhalab01.py
# Brief Description: Basement Waterproofing IPO Program
#Input the dimensions of the floor
floorLength = float(input("Enter floor length (feet) : "))
floorWidth = float(input("Enter floor width (feet) : "))
#Input the dimensions of the furnace and water heater
furnaceLength = float(input("Enter the furnace length (inches) : "))
furnaceWidth = float(input("Enter the furnace width (inches) : "))
heaterCircumference = float(input("Enter the water heater circumference (inches) : "))
#Convert the dimensions of the furnace and water heater to feet
furnaceLength = furnaceLength / 12
furnaceWidth = furnaceWidth / 12
heaterCircumference = heaterCircumference / 12
#Calculate the area of the floor, the furnace and the water heater
floorArea = floorLength * floorWidth
furnaceArea = furnaceLength * furnaceWidth
pi = float(3.14159)
heaterRadius = heaterCircumference / (2 * pi)
heaterArea = pi * pow(heaterRadius, 2)
#Calculate the net floor area, round the value and print it netFloorArea = floorArea - furnaceArea - heaterArea
netFloorArea = int(100 * netFloorArea + 0.5) /100
print("Net floor area (square feet) : ",netFloorArea) """
Enter floor length (feet) : 27.5
Enter floor width (feet) : 22.9
Enter the furnace length (inches) : 42
Enter the furnace width (inches) : 23
Enter the water heater circumference (inches) : 75
Net floor area (square feet) : 619.93
"""
Download