#Title: Shapes Program #Author: Hayden Appleton #Date: 4/11/2026 #Version: 1 #Purpose: This program calculates the perimeter and area of different shapes #Introduction and choosing shape print("This program calculates the perimeter and area of different shapes... lets begin") shape = input("Choose a shape from s for square, r for rectangle or c for circle ") #Square maths and questions if shape == "s": print("square") side = float(input("Enter the length of a side ")) square_area = side **2 square_perimeter = side * 4 print(f"The perimeter of a square with a length of {side} is {square_perimeter} " f"the area is {square_area}") #Rectangle math and questions elif shape == "r": print("rectangle") length = float(input("What is the length? ")) width = float(input("What is the width? ")) rectangle_area = length * width rectangle_perimeter = 2 * length + 2 * width print(f"The area of the rectangle is {rectangle_area}, the perimeter is {rectangle_perimeter}") #Circle math and questions elif shape == "c": print("circle") radius = float(input("What is the radius? ")) area = radius **2 * 3.141592654 circumference = 2 * radius * 3.141592654 print(f"The area of the circle is {area}, the circumference is {circumference}") print("The program has ended")