#title: fence calc #Author: kaio pomana #Date: 26 may 2025 #Version: Big 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: 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}') totalcost = (cost * perimeter) print (f'the total cost is ${totalcost}') 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')