#title: fence calculator #Author: Hugo Hicks #Date: 26 may 2025 #Version: V1 #Purpose: calculate the cost of putting a fence around a paddock print('Welcome to the fence calculator program') print('To use this program you will enter the length and width of a paddock') repeat = '' while repeat == "": # collect: length, width and cost length = float(input('what is the length? ')) width = float(input ('what is the width? ')) cost = float(input(' what is the price per meter? ')) # calculate perimiter and total cost perimeter = (length * width) * 2 #display results print(f'The perimeter is {perimeter} Meters') totalcost = (cost * perimeter) print (f'the total cost is $ {totalcost}') repeat = input('To calculate another area press enter or press any other key to exit the program') print ('the program has ended')