Question: cpp code using object oriented programming language Project 2: Blackjack Card Game Create an object-oriented program tha and deals the specified number of card larger


cpp code using object oriented programming language
Project 2: Blackjack Card Game Create an object-oriented program tha and deals the specified number of card larger number but less or equal to 21, play case create a deck of cards, shuffles them, et-oriented program that plays the Blackjack game. Please create a deck of cards, shut ed number of cards to the player, when player say stop, compare the value, if player en tess or equal to 21, player win, otherwise lost. If equal then no winner. Console Black 3 Card Game: Good Luck! Dealer has shuttled a deck of 52 cards. Do you want to get one more card (y)? Y Here are your cards: 2 of Hearts Total point: 2 Do you want to get one more card (y)? Y Here are your cards: 2 of Hearts 7 of Diamonds Total points: 9 Do you want to get one more card (y)? Y Here are your cards: 2 of Hearts 7 of Diamonds King of Hearts Total points: 22 Sorry! Your total points exceed 21, therefore you have lost, Dealer wins.... Continue? (y): Y Do you want to get one more card (y)? Y Here are your cards: 3 of Hearts Total point: 3 Do you want to get one more card (y)? Y Here are your cards: 3 of Hearts 9 of Diamonds Total points: 12 Do you want to get one more card (y)? N Here are your cards: 3 of Hearts 9 of Diamonds Total points: 12 Here are dealer's cards: 4 of Hearts 7 of Diamonds Total points: 11 Result: you win! Continue? (y): n Good bye! pecifications Design a Card class to store the rank and suit for each card. In addition, use a member function to get a string representation for each card such as "Ace of Spades", "2 of Spades", etc. Use a Deck class to store the 52 cards in a standard playing deck (one card for each rank and suit): ranks: 2, 3, 4, 5, 6, 7, 8, 9, 10, Jack, Queen, King, Ace suits: Clubs, Diamonds, Hearts, Spades This class should include a member function that shuffles the deck Store the Card and Deck classes in separate header and implementation files When the program starts, it should get a new deck of cards, shuffle them, and display a message that indica total number of cards in the deck. To shuffle the cards, you c cards in the deck. To shuttle the cards, you can use the shuffle function of the random function ra The program should prompt the user for requesting the next card Prompt the user for requesting the next card or not. Then, it should deal the user the desired and display all the cards user has and calculates the total points. If the total points exceed 21, indicate the user has lost the game If the total points is less or equal to 21. indicate the user that si is less or equal to 21, indicate the user that since we don't know the Dealer's cards, so we don't know who wins. . * Ask user if desire continue another round of came? If yes, then repeat the game; if no then quit the game, Your answer: ce code: including all the source code files. Indicating each file name, and the content of the source code for that file. Project 2: Blackjack Card Game Create an object-oriented program tha and deals the specified number of card larger number but less or equal to 21, play case create a deck of cards, shuffles them, et-oriented program that plays the Blackjack game. Please create a deck of cards, shut ed number of cards to the player, when player say stop, compare the value, if player en tess or equal to 21, player win, otherwise lost. If equal then no winner. Console Black 3 Card Game: Good Luck! Dealer has shuttled a deck of 52 cards. Do you want to get one more card (y)? Y Here are your cards: 2 of Hearts Total point: 2 Do you want to get one more card (y)? Y Here are your cards: 2 of Hearts 7 of Diamonds Total points: 9 Do you want to get one more card (y)? Y Here are your cards: 2 of Hearts 7 of Diamonds King of Hearts Total points: 22 Sorry! Your total points exceed 21, therefore you have lost, Dealer wins.... Continue? (y): Y Do you want to get one more card (y)? Y Here are your cards: 3 of Hearts Total point: 3 Do you want to get one more card (y)? Y Here are your cards: 3 of Hearts 9 of Diamonds Total points: 12 Do you want to get one more card (y)? N Here are your cards: 3 of Hearts 9 of Diamonds Total points: 12 Here are dealer's cards: 4 of Hearts 7 of Diamonds Total points: 11 Result: you win! Continue? (y): n Good bye! pecifications Design a Card class to store the rank and suit for each card. In addition, use a member function to get a string representation for each card such as "Ace of Spades", "2 of Spades", etc. Use a Deck class to store the 52 cards in a standard playing deck (one card for each rank and suit): ranks: 2, 3, 4, 5, 6, 7, 8, 9, 10, Jack, Queen, King, Ace suits: Clubs, Diamonds, Hearts, Spades This class should include a member function that shuffles the deck Store the Card and Deck classes in separate header and implementation files When the program starts, it should get a new deck of cards, shuffle them, and display a message that indica total number of cards in the deck. To shuffle the cards, you c cards in the deck. To shuttle the cards, you can use the shuffle function of the random function ra The program should prompt the user for requesting the next card Prompt the user for requesting the next card or not. Then, it should deal the user the desired and display all the cards user has and calculates the total points. If the total points exceed 21, indicate the user has lost the game If the total points is less or equal to 21. indicate the user that si is less or equal to 21, indicate the user that since we don't know the Dealer's cards, so we don't know who wins. . * Ask user if desire continue another round of came? If yes, then repeat the game; if no then quit the game, Your answer: ce code: including all the source code files. Indicating each file name, and the content of the source code for that file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
