# Global constants for property tax ASSESS_PERCENT = 0.6 PROPERTY_TAX_PERCENT = 0.0064 # main function def main(): # Local variables actualValue = 0.0 assessValue = 0.0 propertyTax = 0.0 # Get the actual value actualValue = float(input("Enter the actual value: ")) # Calculate the assessed value assessValue = actualValue * ASSESS_PERCENT # Calculate the property tax propertyTax = assessValue * PROPERTY_TAX_PERCENT # print information about property tax showPropertyTax(assessValue, propertyTax) # The showPropertyTax function accepts the assessment Value # and the property Tax value as arguments and displays the property tax # information. def showPropertyTax (assessValue, propertyTax): print ("Assessed value: $", format(assessValue, '.2f')) print ("Property tax: $", format(propertyTax, '.2f')) main()