# Feet to Inches Excercise
# July 15,2019
# CTI-110 P5T2_FeetToInches
# Darrius Brower
#
# Write a function that accepts number of feet as an argument, and
# returns the inches. One foot equals 12 inches. Use the fuction in the
# program that tells the user to enter number of feet and then displays
# the number of inches in that many feet.
#
# Constant for the number of inches per foot.
INCHES_PER_FOOT = 12

# main function
def main():
    # Get a number of feet from the user.
    feet = int(input('Enter a number of feet: '))

    # Convert that to inches.
    print(feet, 'equals', feet_to_inches(feet), 'inches.')
    
# The feet_to_inches function converts feet to inches.
def feet_to_inches(feet):
    return feet * INCHES_PER_FOOT

#Call the main function.
main()
