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

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.