# *************************************
# Your name
# date
# file: piggybank.py
#
# This program determines the value of set of coins
#***************************************

# display greeting

name = input("what's your name? ")

if name == "Adam":
    print ("oh, it's you again. word.")
else:
    print ("hi, nice to meet you, {}".format(name))

again = "yes"

while again == "yes":
    # get coin numbers from user
    pennies = int(input("How many pennies you got?: "))
    nickles = int(input("and how many nickes?: "))
    dimes = int(input("and what about dimes?: "))
    quarters = int(input("you got any quarters too? How many?: "))
    if quarters > 1000:
        print ("wow, that's a lot quarters!")

    # calclulate total        
    total = .01 * pennies + .05 * nickles 
    total = total + .1 * dimes + .25*quarters

    # print results
    print ( name + ", your total is worth ${:.2f} dollars".format(total))
    again = input( "You wanna do this again? yes/no ")

# display goodbye

print ("so long sucker!")
