Question: Need help with this program , need it to be in C++ crott an array for Cards Solitaire Prime - Prog I dela Solitaire is

Need help with this program , need it to be in C++  Need help with this program , need it to be in
C++ crott an array for Cards Solitaire Prime - Prog I dela

crott an array for Cards Solitaire Prime - Prog I dela Solitaire is a card game that is played by one person. Solitaire is also known by the name "Patience" It is estimated that there are more than 1700 different versions of Solitaire... make that 1701 because we are inventing a new Solitaire game today Welcome to Solitaire Prime! This game uses one standard deck of cards. Here are the rules: 1) Take the top card from the deck and place it face up on the table 2) The Sum is now the value of that card (Ace-1,2-2,... 10-10, Jack 10, Queen-10, King 10) 3) If the Sum is a prime number, discard that pile (hand), and start over at instruction #1 4) If the Sum is not prime, take the next card from the top of the deck and place it on top of the card stack (pile or hand) on the table. 5) The Sum is now the sum of all cards in the stack on the table. 6) Go to instruction #3. Continue to play the game, keeping track of how many piles you have created that are prime. If the last card from the deck gives you a prime pile, then you win! Write the word "Winner" on the screen and show how many prime piles there were. If the last card from the deck does not give you a prime pile, then you lose. Write the word "Loser" in the These 2 screen shots show possible winner and loser hands. When you acquire a Prime pile, print out the value (prime number) and start over on the next line. Visual Studio 2012 Proje.. CAUserststeveng Documents Visual e Playing Solitaire Prine! Playing Solitaire Prinett! D. 5D. JS. 6S, AH. Prine:23 H. Prine:? C. 8H, Prine : 17 D. 3D. Prine:13 H. Prine :2 D. H. 9D. Prine:19 H, Prine :3 ll. se. Prine : 17 D. Prine:2 D. 88. AH. Prine :13 C. 7S. Prine 217 4H. 9H. Prine:13 H. Prine:7 C. Prine:? D. D. c. C. Prine:? Prine :2 3c. KH. Prine:19 Prine :5 1es. 9D. Prine:19 s, 3C, Prine:13 H. Prine:5 s. 2c. Prine:3 C- 7D, Prine : 17 D. Prine:3 4S. 18S. 98. Prine:23 6H.3S. nS. KD, JC. AC, Prine:31 C. Prine:7 H. Prine :5 S. Prine :5 H. KH. 98. Prine :29 l, JD, 6C. Ac. Prine:23 H. Prine s. Prine :2 s. 8C.8D. 5D. Prine :31 D. 3S. 18D, SC. Prine:19 linner in 18 pilest S. 6S. 18C. KD, QH, 18, Loser

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!