-2

You are required to write a program in C that will simulate the game of blackjack between two players. The computer will not be a participant in the game but will only deal the cards to each player and provide them with one or more ‘‘hits’’ ,that is additional cards when requested.

The cards are dealt in order, first one card to each player then a second card to each player.
Additional hits may then be requested.

The aim of the game is to obtain 21 points or as many points as possible without exceeding 21 points on each hand. A player is automatically disqualified if his or her hand exceeds 21 points.

Picture cards count 10 points and an ace may count either 1 point or 11 points. Thus a player can obtain 21 points (blackjack) if he or she is dealt an ace and either a picture card or a 10.

If the player has a low score with his or her first two cards, he or she may then request one or more hits as long as the total score does not exceed 21.
Use random numbers to simulate dealing the cards. Be sure to include a provision that the same card is not dealt more than once.

can anyone write this program in dev c++ its for a sensitizing campaign, the orphan childrens. the one who write this program will win the competition

2
Contributors
1
Reply
2
Views
4 Years
Discussion Span
Last Post by deceptikon
1

Nobody is going to do your homework for you, and calling it a competition isn't going to fool the vast majority of us. Please read our rules, provide proof of effort, ask some questions, and we'll help you do it.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.