Menu Close

 Area of a Field in Python …FTC

Create a program that reads the length and width of a farmers field from the user in feet. Display the area of the field in acres.

Hint:
There are 43,560 square feet in an acre

SQ=43560; (Squarefeet)

Formula = (length*width)/squarefeet

a=float(input("Length: "))
b=float(input("Width: "))
c=a*b/43560
d=round(c,2)

print("The area of the field is " + str(d) + " acres")


INPUT_1:
Length:  25000
Width:  20000

OUTPUT:
The area of the field is 11478.42 acres


INPUT_2:
Length: 65000
Width: 50000
OUTPUT:
The area of the field is 74609.73 acres


ILLUSTRATION

Executed using python3