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
Morae Q!
- Program to get dictionary items, use update module and items module.
- Regular expression allowing certain set of characters.
- Compute the Sum of Cosine Series.
- Find the Sum of Sine Series.
- Remove the Vowels from the string.
- Find All Non-Overlapping strings/characters using regular expressions .
- Check whether the given string is Panagram or not.
- Replacing strings using Regular Expression Regex.
- Check whether the given number is Strong number or not.
- Find the numbers divisible by a input numbers within the given range.
- Change the behaviour of the Regular Expression using flags.
- Find the exponentiation of a number.
- Find all prime numbers in a range using Sieve of Eratosthenes.
- Convert decimal equivalent into binary, hexadecimal and octal.
- Compute the area of a farmers field in feet.
- Compute time from number of days/hours to seconds.
- Precompiled patterns using Regular Expressions .
- Compute the price of the cake on the nth day.
- Compute the number of possible non-increasing arrays.
- Find the type of spinach using the calorie value.