i am still really new to this so please give me some time
ok, for a lab i have to do i need to create a change counter...you know like the ones at gas stations where it auto-dispenses your change? well, my problem is this...i am hitting a wall on how to get this done...what needs to be done is this:
this will be an input from a user
amount of sale: lets say 1.35
another input from user
amount tended: 2.00
display on screen:
Change is .65
Quarters = 2
Dimes = 1
Nickels = 1
i am thinking it will just be a loop that compares the change amount to a final value of quarter and if it is larger, then .25 will be taken from it and some value keeping track of the number of quarters will be ++'d and so on and so forth with each coin value
am i right and if so could you please help me out with a few hints? is it possible to do in just one class or do i have to make a class for each coin?
well, back to work for now
thanks in advance for any help
adam
p.s. i work at Boise Cascade Office Products in Columbus, OH....if you need office supplies, check out
www.bcop.com <====just figured i would do my part for the company