import time # Title: Paddock Perimeter # Author: Corrin # Date: 26/05/25 # Version: Version 1 # Purpose: Calculate the perimeter of a paddock and display the price print("Welcome to the calculator program!") time.sleep(0.9) print("To use this program you will enter the length and width of a paddock \n and the price to put a fence around it...lets begin") time.sleep(0.9) repeat = "" while repeat == "": length = float(input('What is the length? ')) width = float(input('What is the width? ')) cost = float(input('What is the price per meter? ')) # Rectangle: perimeter = 2 x (length + width) or perimeter = 2 x length + 2 x width # Square: perimeter = 4 x length perimeter = 2 * (length + width) Totalcost = (perimeter * cost) print(f'The perimeter is {perimeter}') print(f'The total cost to put a fence around the paddock is ${Totalcost}') repeat = input("To repeat the program press any key or " "enter or any other key to end it") print('The program has ended')