Change Maker Startoff - Challenging
So my teacher decided to challenge us and gave us 1 week to make a graphical change maker. Basically what it will do is you will enter an amount to be paid, for example "$17.29".. and then you will enter an amount to pay with, for example "20.00"..
his requirements are a button for each of the types of bills "1,5,10,20,50,100" and coins "penny, nickel, dime, etc..", and then when you select a bill and coins to pay with, a picture of that bill and/or coin will pop up, and you can also be able to pay with more than one bill an or coin like "2 5's, 4 1's" and 3 quarters, and each time you press it the corresponding bill/coin will appear.. then there will be a confirm/pay button you hit to make the transaction.. and it will then say in a window box at the bottom saying "thank you for paying, your change is: x"... and when the change comes out it will have a picture of each bill/coin used to make the change..
Im baffled on how to approach this problem.. shoulda i use separate classes for each type of currency or should i use it all in one long class?
any help would be appreciated..