Im answering based on the assumption that you want to use a stepper motor to control the card dispenser, the reason i suggest a stepper and photointerupter is that its a simple and accurate hardware solution, in the industry i used to work in this combination was used on copiers printers,card printers and dispensers and is relatively cheap or mainly free
1 look at the stepper motor datasheet or search on google as there are lotsa of sites about stepper connections
2 not sure someone else will answer soon ( but if you want to use a dc motor to dispence then i would use a slotted disc on the motor and a photointerupter and run the motor for a set number of pulses )
3 search on this forum for button control as there are loads of posts on either using a single button, multiple buttons or a keypad, one thing to look at on the dispensing side would be using a photointerupter to detect the leading edge and trailing edge of the card then set up a count so that a count of two = 1 card 4= 2 cards etc, then when the interupter is triggered by a card being dispensed it will say send 15 pulses to the stepper and increase the count.
so your flowcode could look something along these lines
input from keypad
decition based on how many cards selected
edge detect starts count
stepper operated
check count against cards requested
either restart stepper or finish
decide on the hardware then it will be easier to get help as there are lots of combinations of code to use depending on the hardware
Not a lot of help but some ideas to play around with hth