# Title: Calculate perimeter of a paddock # Author: Varun # Date: 26 May 2025 # Version: Version 1 # Purpose: Calculate the perimeter of a paddock and display the price print('Welcome to the fence calculator program') print('To use this program you will ente the length and the width of a paddock and the price to put a fence around it...lets begin') while length <= 500: break else: True: # collect length and width while True: length =float(input('What is the length?')) if 0 <= print('Your length should not be less than 0 or more than 500') whitle True: width =float(input('What is the width?')) if 0 <= width <= 500: break else: print('Your width should not be less than 0 or more than 500') while True: #collect the price price = float(input('What is price per meter?')) # calculate perimeter = (length+width)*2 # price calculation cost=perimeter*price # results print(f'The perimeter of the paddock is {perimeter} meters') print(f'The total cost to put a fence around the paddock is ${cost}') choice = input("Run again? (y/n): ") if choice.lower() != 'y': break print('The program has ended.')