View Single Post
Old 02-14-2008, 11:11 PM   #1 (permalink)
SpikedCola
 
Super Techie

Join Date: Jan 2006

Location: Ontario, Canada

Posts: 456

SpikedCola is on a distinguished road

Send a message via MSN to SpikedCola
Default C# Ideas - Working With Coins & Bills

Eventually, Id like to work the program out so that it asks you how much the first name stored in a list made, then you put it in, then asks you how much the second name in the list made, etc, and once you type "done" it spits out the following info into an array and dumps it to a text file so it can be printed out.

Right now, Id like to keep it console-based, as thats what Im comfortable with, and Id like to understand what Im doing.

The entire idea behind the program is to help my mom out when she does payroll. Basically, youd enter the dollar value that the person made (above, when it asks), and the program would spit out (text for now is fine, Ill work it out into an array later) how many 100's, 50's, 20's etc, all the way down to pennies you have to give the person to make up the value that they earned.

I was planning on using the remainder operation, but Im at a loss for how it works. I was hoping somebody here is fluent in C# and would, at least, be able to give me some pointers or things to look at, or an example of a snippet of code that can do what Im looking for.
__________________

Asus P5E | Q6600 | 2x2GB Corsair Dominator DDR2-1066 | BFG 8800GTS | 5x1.5TB SATA2 | 2x500GB SATA2 in RAID1
SpikedCola is offline