need help with a program.
The task: Randomly pick one unique card out of the 52 cards.
*If it is a diamond OR a heart put it in a stack (call it "rstack")
*If it is a club or spade put it in a different stack (call it "bstack")
*Each stack can only hold 10 cards.
*The first time one of the stacks has 10 cards, then stop dealing the cards and put the 2 stacks into 2 different files.
*Call them rfile.txt and bfile.txt respectively.
*Open those 2 files to verify the contents (use notepad). One of the files must have 10 cards, the other file should have less than 10.
The task: Randomly pick one unique card out of the 52 cards.
*If it is a diamond OR a heart put it in a stack (call it "rstack")
*If it is a club or spade put it in a different stack (call it "bstack")
*Each stack can only hold 10 cards.
*The first time one of the stacks has 10 cards, then stop dealing the cards and put the 2 stacks into 2 different files.
*Call them rfile.txt and bfile.txt respectively.
*Open those 2 files to verify the contents (use notepad). One of the files must have 10 cards, the other file should have less than 10.