I have to write a program that calculates change for school and I am stuck. Here's the assignment:

Create a program that calculates change after a purchase. This will be a sequential algorithm, which is one of the simplest programming patterns. Your solution requires no branching or looping. Simply write a series of statements that will execute in order.

The program should ask for a purchase price and the amount of cash tendered. It should then determine how many of the following denomininations should be returned:penny$0.01nickel$0.05dime$0.10quarter$0.25dollar$1.00five$5.00ten$10.00twenty$20.00

You first find out how many of the largest denomination you can use, then do that again for the remainder and the next denomination, and repeat a few more times.You can use division and modulo for these, or use the divmod() function.