# Daniel Foster
# 06/03/2024
# Area and perimeter program

# This takes input for width and height.
# I convert input to a float type so
# the user can put in decimal values.
width = float(input("What is the width: "))
height = float(input("What is the height: "))

# This calculates the area
area = width * height
print("The area of the rectangle is",area,"units squared.")

# This calculates the perimeter
perimeter = 2*(width + height)
print("The perimeter is", perimeter,"units.")
