I'm writing a fake program for a store in my programming class. I'm stuck on one part though. I ask the user to input the
cost of and an item and if they have any coupons for it (and how much) then it computes the total after that. (easy stuff) But then i ask if they have any more items, and if they do, it repeats the "item cost / coupon amount" part. Where I'm getting stuck at is i can seem to find a way to be able to add up the total final cost (item - coupon). Every time the program starts over at "Input item cost:" i lose my numbers of the last item / coupon.
Any help with this?
** I dont know before hand how many items there will be total
** An example would be great as I'm still very new to programming
Thanks in advance =)
2007-10-12
19:57:21
·
1 answers
·
asked by
Xan
1
in
Education & Reference
➔ Homework Help