Programming Exercise 2-3
# Variables to hold the size of the tract and number of acres.
tractSize = 0.0
acres = 0.0
# Constant for the number of square feet in an acre.
SQ_FEET_PER_ACRE = 43560
# Get the square feet in the tract.
tractSize = input(“Enter the number of square feet in the
tract.”)
# Calculate the acreage.
acres = float(tractSize) / SQ_FEET_PER_ACRE
# Print the number of acres.
print (“The size of that tract is”, format(acres, ‘.2f’),
“acres.”)
Start
Declare Real tractSize,
acres
Constant Integer
SQ_FEET_PER_ACRE
= 43560
Display “Enter the
number of square
feet in the tract.”
A
A
Input tractSize
Set acres = tractSize /
SQ_FEET_PER_ACRE
Display “The size of
that tract is“, acres,
“acres.”
End