Question: Please do this program Here is how the game is played: 1) There is one deck of 100 cards. Each has a value 0-10. 2)

Please do this program  Please do this program Here is how the game is played:

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 "front" of the deck. 4) Here is a list of the a's and what happens 0 - minus 10 points, turn is over 1 - gets the one point and draws again 2 - gets the 2 points, random card is put at the "back" of the deck, turn is over 3 through 10-the player get the points, but the num is over 5) First player to 100 wins Add another 100 cards, if the deck of cards run out) Must use a queue to represent the deck of cards Must use random E function and build the queue using addQueue() 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 app 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) Start Game Player 1 - 0 Player 2 - 0 Player 1 turn Player 1 draws 2 Card with random value placed on top of the deck End of Player 1 turn Player 1 - 2 Player 2 - 0 Player 2 turn Player 2 draws a 1 - 2 Player 2 - 1 Player 2 Player 2 picked a 1, thus draws again Player 2 draws a 10 End of Player 2tum Player 1 - 2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!