
# ATM2  lets a human withdraw cash from an automated teller machine.


def errorMessage(message) :
    """errorMessage  prints a specific error message.

       parameter: message - a string, stating the error
    """
    text = "Error: " + message
    print  text


# The program starts here:

dollars = int(raw_input("Type dollars amount: "))
if dollars < 0 :
    errorMessage("You typed a negative number.")

cents = int(raw_input("Type cents amount: "))
if (cents < 0) or (cents > 99) :
    errorMessage("The cents was not in the range 0..99.") 

# the step that does cash withdrawal will go here:
print "...withdraw the cash from the account...(to come)"


raw_input("\n\npress Enter to finish")

