#Perimeter of a paddock #Author: Liam Baker Campbell #Date: 26 May 2025 #Version: Version 1 #Purpose: calculate the perimeter paddock and display the price print('Welcome to the calculator program') print('To use this program you will enter the length and width of a paddock and the price of the fence around it...lets begin.') while True: #collect length and width length = int(input('What is the length? ')) width = int(input('What is the width? ')) #collect the price meter price = int(input('What is the price per meter? ')) #calculation perimeter = (length+width)*2 total = (price*perimeter) #display results print(f'The perimeter of the paddock is {perimeter} meters.') print(f'The total cost to put a fence around is ${total}.') choice = input('Run again? (y/n): ') if choice.lower() !='y': break print('The program has ended.')