# Arup Guha
# 6/26/2012
# Sales Tax Program Revisited - conditionally charges sales tax.

def main():

    # Get the user input.
    item_price = float(input("Please enter the price of your item.\n"))
    is_taxed = input("Is your item taxed(yes,no)?\n")

    # If the item is taxed, ask the sales tax percentage and add tax.
    if is_taxed == "yes":
        tax_rate = float(input("What is the sales tax percentage?\n"))
        item_price = item_price + item_price*tax_rate/100

    # Calculate the total price and round.
    print("Your total cost is $",item_price,".",sep="")

# Start the program.
main()
