I need help writing the following Python program

Write a main program to accept two inputs:  

1) a purchase amount and 
2) the amount used to pay for the purchase
3) the payment cannot be the exact amount of the purchase.  (For 
example if your purchases come to $14.86 you could pay using a $10 & 
a $5 dollar bill or a single $20 dollar bill).  

The program should then make the correct change using the smallest 
number of bills & coins.

For example:

Amount of purchase: $14.86
Payment: $20 dollar bill
Amount of change: $5.14, consisting of a $5 dollar bill + one dime + 
4 pennies.






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/q7folB/TM
--------------------------------------------------------------------~-> 


Please zip all files prior to uploading to Files section. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AccessDevelopers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to