#Title: fence calc #Author: Lucca Asbury #Date: 26/05/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') # collect input: 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 perimeter 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}') print('the program has ended') repeat = "" while repeat == "": # collect input: 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 perimeter 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}') print('the program has ended')