Question about Computers & Internet

1 Answer

Computer science c++

The memory game is a game played with 10 cards, each placed face down. Each card has a capital letter printed on it. There are exactly 5 matching pairs of cards. Each turn is as follows:

  • The player turns two cards upright.
  • If the cards are the same, then the cards remain upright.
  • If the cards are different, then the cards are turned face down again.
The cards always remain in the same relative position. Write a C++ program to implement this game. The game stops when all cards have been matched.
Once the game has concluded, ask the user if he/she wishes to play again.
Hint: You decide what the cards will be!
Hint: you will need to remember the letter on the card, as well as whether the card is face down or not.

Posted by on

  • Anonymous Mar 13, 2014

    while playing cards, intermissions are still taking place

×

1 Answer

  • Level 2:

    An expert who has achieved level 2 by getting 100 points

    MVP:

    An expert that gotĀ 5 achievements.

    Sergeant:

    An expert that hasĀ over 500 points.

    Champion:

    An expert who has answered 200 questions.

  • Expert
  • 329 Answers

I can help you.. you should pay me. $50

Posted on Mar 28, 2008

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
goodluck!

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

How to play scrabble dash?


Each player has a hand of 7 letter cards - initially 5 consonants and 2 vowels, but as the game progresses players can refill their hands freely from the separate vowel and consonant decks to vary the mix.
On each turn, the top Dash card is turned face up, revealing the goal for that turn. Players then race to play a word from their hands to fulfil the Dash card, or skip the turn to discard cards and draw new ones.
The Dash cards include criteria such as number of letters (ranging from 2 to 4), specific parts of speech (verb/proper noun), or specifying that the word has to start, end with, or contain a particular letter, drawn at random from either the vowel or consonant deck (players do not need to play their own copy of this letter from their hand).
The first player to lay down a valid word claims the Dash card, and the first player to collect 5 Dash cards wins the game.

Jun 21, 2014 | Games

1 Answer

Lost my rules for my five alive card game


SET UP
Place one set of "A-L-I-V-E" cards (color coded) in front of each player. Set aside unused "A-L-I-V-E" cards.
Shuffle the deck.
Deal out 10 cards to each player.
Place the remainder of the deck face-down in the center of the table.
Play proceeds clockwise, starting left of dealer.
WHAT HAPPENS
Players take turns playing a card onto the discard pile.
If it is a number card, add it to the running total. If this would take the total above 21, instead of playing it, you must flip over an "A-L-I-V-E" card.
If it is a WILD card, follow the appropriate instructions.
If it is your last card, the hand is over. All other players flip over an "A-L-I-V-E" card.

DRAW: All other players must pick up 1 card from the face-down deck. Counts as 0 to the running total.

DRAW 2: All other players must pick up 2 cards from the face-down deck. Count as 0 to the runing total.

PASS ME BY: Play passes to the next player in the rotation. Count as 0 to the running total.

REVERSE: Play now proceeds in an opposite direction, left to right and vice versa. If played when only two players are left, it is treated as a PASS ME BY card. Counts as 0 to the running total.

SKIP: The next player is ignored and play proceeds to the following player. If played with only two players, the player of the card would get an immediate new turn. Counts as 0 to the running total.

=21: No matter what the total was, it is now 21. Can be played when the score is already 21, when it has no effect, but avoids a penalty.

=10: The running total is now 10.


HAND IN & RE-DEAL: All players hand their cards to the player of the card. He must shuffle all the hands, including his own and re-deal them to the players.
He does not include the face down deck or the discards. He should start dealing to his left. If new hands are unequal, bad luck. Play continues as normal, but the running total is reset to 0. If this card is the last card played from a players hand, the round is over.

BOMB: When played, all other players must immediately discard a 0. If they can't, they must flip an "A-L-I-V-E" card. Running total is reset to 0.
Note: other WILD cards with a value of 0 cannot be substituted.
WINNING
The last player with an "A-L-I-V-E" CARD face up is the winner.
ALTERNATIVE SUDDEN DEATH ENDING
As soon as one player flips all "A-L-I-V-E" cards, the game ends. The player
with the most "A-L-I-V-E" cards remaining is the winner.
If there is a tie, the tied players add the total value of the number cards
remaining in their hand. The player with the lowest total wins.
ALTERNATIVE TEAM PLAY
FOR 4 TO 6 PLAYERS. DIVIDE INTO 2 TEAMS.
Team members sit alternately around the table.
Each team uses only one set of "A-L-I-V-E" cards.
All WILD cards operate as before: For example, when playing the BOMB, your team might flip several "A-L-I-V-E" cards, if the players don't have a "0".
When a player plays his last card, the opposing team loses only one life.
Play continues as normal until a team flips all "A-L-I-V-E" cards.

Apr 11, 2014 | Games

1 Answer

RULES FOR PHASE 10


  1. One player is chosen to be the dealer,who shuffles the deck and deals out a hand of 10 cards
  2. one at a time and face down, to each player
  3. Players hold their 10 cards in hand, so that other players cannot see them.
  4. The remaining deck is placed face down in the center of the play area, to become the draw pile.
  5. The top card of the draw pile is turned over and placed next to the draw pile, to become the discard pile.
  6. Play begins with the player to the left of the dealer, and progresses to the left.
  7. In turn, a player draws one card-either the top card from the draw pile or the top card from the discard pile-and adds it to the player's hand.
  8. The player ends the turn by discarding one card of choice onto the discard pile.
  9. Play of the first hand begins, with each player trying to complete the first Phase of the 10 Phases. Each player can make only one Phase during the game
Go to this site for more details : http://www.centralconnector.com/GAMES/phase10.html

Jul 03, 2011 | Toys

1 Answer

I think my cellphone has a virus on it because it shuts down and back on after every 10 seconds how do i remove the virus


You just need to remove you are memory card from you are phone after that place that memory card in the card reader.Then open the memory card icon that is placed in my computer.Format it then add you are memory card to you are cellphone.Then you will not face any problem.If you still have problem means you need to contact you are nearest samsung service center they will flash you are mobile with in a few minutes.Thanks for your question.

Jun 20, 2011 | Samsung Star GT-S5233 Cell Phone

1 Answer

What are the rules for sorry revenge


Setup:

Place the Big Red Pawn (BRP) in the center of the table. Everyone gets on home board and 4 pawns of the same color. Distribute the Quick Rules Cards and then shuffle the deck and deal 5 cards to each player. The remaining cards go in the center as the draw pile. Turn the top card of the draw pile face up next to the pile to start the discard.


Play:

Once everyone has their cards, turn the BRP on and when directed, tap it once to determine who starts the game. On your turn you will either play a card or tap the BRP.


Card play options:

Play 1 card on the discard pile, same color as the top card.

Play any number of cards on the discard pile that are in ascending numerical sequence These cards do not need to color match.

Play a wild card.

If you can play on the discard pile, you must play. You cannot voluntarily tap the BRP


Wild Cards:

Slide card- the slide card allows you to play any amount of numbered cards from your hand which match the color of the slide card. The slide card does not need to match the current face-up card. If you cannot play at least one matching numbered card, you may not play the slide card. The exception is if the slide card is the last card in your hand, in which case you may play it, and the person to the left must follow the slide card rules, if possible.

Safety zone card- May be played on any color, but ends your turn. The following player may play any color on top of it.

Sorry! card-May be played on any card. After playing the Sorry! card, select any other player to tap the BRP. After they have followed the BRP's order, turn passes to their left.


Special Cards:

Special card rules are printed on the cards.

1-When playing a sequence, you may choose to play a 1 on top of a 12.

2-If the 2 is the last card played by you, you may choose to take another turn.

4 and 10- If either the 4 or the 10 is your last card played, turn order reverses. In 2 player games, the 4 and 10 act as a "skip" card, skipping the opponent.

11-If the 11 is your last card played, you may choose to swap hands with any player.


Tapping the BRP:

If you cannot play at least one card, you must tap the BRP. If you are selected by a player playing the Sorry! card, you must tap the BRP. To tap the BRP, simply press down on the top, and listen for his orders, which you must follow. They may include drawing cards, giving cards away, taking cards from others, etc. If you must tap the BRP on your own turn, due to not being able to play a card, you may make any legal play with cards resulting from the BRP's order before the run passes to the next player.

Going home: To move a pawn home, you must empty your hand of cards. When you do so, place one pawn on your home board and draw a new hand of five cards. The winner is the first person to place all four of their pawns on their home board.


Read more: http://wiki.answers.com/Q/How_do_you_play_sorry_card_revenge#ixzz1NmMqv0HG

May 29, 2011 | Toys

1 Answer

I moved photos from my computer to my Micro SD memory card, after formatting the card on the computer. I then proceeded to insert it in to my Samsung Entro... and when I open my albums menu, it is...


Usually the photos need to be in a particular folder on the memory card for the phone to recognise them. Usually something like Pictures or Photos and they must have capital letters or small letters in the right places. If you can remember the names of the folders before you formatted and make them again now, it should work.
Hope that helps :)

Mar 02, 2011 | Cell Phones

1 Answer

My computer shuts down after a few minutes


2 possible issues come to mind: 1) the computer is getting hot (CPU, memory or video card), 2) the power supply can't keep up with the demand.

Try using a program that lets your track your computer's internal temperature. System Information for Windows, http://www.gtopala.com/ , is the one I use. Depending on the cause, you may need to increase the ventilation of your case (add fans - slot cooler by the video card, front, back or side panel.). If the CPU is getting hot, make sure that the CPU cooler is working and consider removing it and reapplying a new layer of thermal paste before reattaching the cooler.

If the problem is the power supply, check the specs on your devices (memory, CPU, video card) and the power supply load rating. You may need to upgrade the power supply.

I hope this helps.

Cindy Wells
(I am not a gamer but the default power supply that came with my computer didn't have enough power for the added memory and video card. I replaced that and added a back fan (spot available), a slot cooler, a drive bay fan and cut a hole to add a side panel fan.)

May 08, 2010 | Biostar P4M900-M4 Motherboard

1 Answer

I have a Roseart 2003 Strawberry Shortcake (Strawberryland) Hide and Seek Game but no directions. Is there a place for me to find or purchase the directions to the game for my kids?


These rules are for the very similar game from Strawberry Shortcake called Berry Princess Hide and Seek Game:
Strawberry Shortcake and her friends need to find all their accessories in time for the ball. You can help them seek out their belongings by using your memory skills. The first player to collect his/her belongings and get to the castle entrance in the middle of the game board wins.
Mix up the princess cards and deal one out to each player. If there are only two players you can each play two cards. The princess you receive is your teammate. Take your princess card and place it face up in front of you. Each princess card has a matching play piece. Take your matching princess play piece and place it on the matching princess start space on the game board. Next, mix up the princess accessory discs, berry jewel side up, and place them randomly into the holes on the game board. The youngest player goes first, and play passes to the left. Spin the spinner and move the same number of jewel spaces shown. If the spinner lands on a line, spin again. Two players can be on the same space at the same time. Once you enter the game path, you may move your princess play piece in any direction on the board. The castle entrance space in the middle of the game board can be used as any other space until the end of the game. When you land on a space with a disc, pick up the disc and do one of the following: 1) If the accessory on the princess disc matches one of the missing accessories on your princess card, place it on the corresponding accessory on the card and your turn ends. Play passes to the player on your left. 2) If the accessory disc does not match an accessory on your princess card, show it to the rest of the players and place it face down back into the same hole. Play passes to the player on the left. Once a princess accessory disc is taken from the baord, that hole becomes a magic tunnel space. If you land on a hole that does not have a disc, you may move to any place on the game board. The Winner: The winner is the first player to find all of the accessories on his/her princess card and land his/her princess play piece on the castle entrance space in the center of the board. To win, you must land on this space by exact count. NOTE: You may not use a magic tunnel space for your final move.

Apr 13, 2010 | Roseart Toys

1 Answer

Music to my easyram 2gb stick 4rom internet.


There are several ways to transfer music into your memory card. Please read the options below:

1. Main thing to do, download music to your computer using a program (i.e. Lime Wire)
2. Save the downloaded music to your computer where you can easily find it.
3. You need a USB card reader where you can insert your memory card.
4. Insert the USB card reader while the memory card is inside of it.
5. Make sure that the computer will recognize your memory card and verify the drive letter that will be assigned to it. (i.e. D:)
6. Locate the music and then right-click on it and then select Send To.
7. Select the drive letter of your memory card (D:) and the music will be transferred to it.

*Another thing*
1. Open the driver letter (D:) assigned to your memory card by double-clicking it.
2. Highlight all the music that you would like to transfer.
3. Place the mouse pointer to the selected music and hold down the left-click button of the mouse and then drag it over to the memory card.

Mar 26, 2009 | Sony 2GB Memory Stick PRO Duo Memory Card

1 Answer

Transfering MP3's from an SD Card


Putting Music On Your PS31. Make a folder called MUSIC (capital letters), and place all of your MUSIC in there. (You are not required to make a MUSIC folder.)


2. Now connect your device(SD card,Memory Stick Duo).


3. Go to "MUSIC" find where it says "Audio CD", USB, PSP, Memory Stick etc. and press "Triangle" > "Import" or "Copy" if you don't see the files press "Triangle" > "Display all"

Dec 13, 2007 | Sony Playstation 3 (PS3) Console

Not finding what you are looking for?
Computers & Internet Logo

Related Topics:

75 people viewed this question

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Les Dickinson
Les Dickinson

Level 3 Expert

18384 Answers

kakima

Level 3 Expert

102366 Answers

David Payne
David Payne

Level 3 Expert

14161 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...