#Title: Perimeter calculator #Author: Kingsley #Date: 4/06/2025 #Version: V1.1 #Purpose: To calculate the perimeter of a paddock is meteres squared print('Welcome to the fence calculator program') print('To use this program you will enter the length and width of a paddock and the price to put a fence around it...lets begin') shape = input('Square or Rectangle? ') length = float(input('what is the length? ')) width = float(input('What is the width? ')) price = float(input('What is the price per meter? ')) if shape == 'square': perimeter = 4*length print(f'The perimeter of the paddock is {perimeter} meteres') fence_price = perimeter*price print(f'The total cost to put a fence around the paddock is ${fence_price}') elif shape == 'Square': perimeter = 4*length print(f'The perimeter of the paddock is {perimeter} ') fence_price = perimeter*price print(f'The total cost to put a fence around the paddock is ${fence_price}') elif shape == 'rectangle': perimeter = 2*(length+width) print(f'The perimeter of the paddock is {perimeter} meteres') fence_price = perimeter*price print(f'The total cost to put a fence around the paddock is ${fence_price}') elif shape == 'Rectangle': perimeter = 2*(length+width) print(f'The perimeter of the paddock is {perimeter} meteres') fence_price = perimeter*price print(f'The total cost to put a fence around the paddock is ${fence_price}') else: print('You have not entered a valid shape! ') print('The program has ended')