程序代写代做代考 Programming Exercise 2-3

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.”)

Input tractSize
End

Display “The size of that tract is“, acres, “acres.”
Set acres = tractSize / SQ_FEET_PER_ACRE
A
A
Display “Enter the number of square feet in the tract.”
Declare Real tractSize, acres
Constant Integer SQ_FEET_PER_ACRE = 43560
Start