Question: How would you write this program in c++ language ? Write a C++ program to play the game: 100! Here is how the game is
Write a C++ program to play the game: 100! Here is how the game is played: 1) There is one deck of 100 cards. Each has a value 0-10. 2) There must be two players. 3) Each player draws a card off the top of the deck. 4) Here is a list of the #'s and what happens 0 -minus 10 points, turn is over l -gets the one point and draws again. gets the 2 points, random card is put back on top of deck, turn is over 3 through 10-the player get the points, but the turn is over 5) First player to 100 wins! (Add another 100 cards, if the deck of cards run out) Must use a stack to represent the deck of cards Must use random function and build the stack using push0 function Be sure to include comments Use meaningful identifier names (constants where appropriate) Do not work together; no two people should have identical work!?!? Turn in .cpp file (select the "print' command from bloodshed) Turn in a "print-screen' of your output (press 'print-screen' on keyboard, then paste' in MS-Word) SAMPLE OUTPUT ON BACK
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
