Write a program that will prompt the user for a purchase amount. If this bill amount is valid, then prompt the user again for the payment amount. If this is valid then compute the change to be returned. This amount should be displayed in pennies, nickels, dimes, quarters, single dollar bills, five dollar bills, ten dollar bills, and 20 dollar bills. If either of the input values is invalid, an error message should be displayed explaining precisely where the error is.

Nice program requirements, but what do you want us to do about it? Please don't ask anyone to write it for you because we won't do that. Post what you have tried and ask questions.

commented: Exactly... +2