Question: Please provide full answer with comments better to understand it is just beginning of c++ so please don't use advances teqniques. I will add screenshots
First is main.cpp , second card.h, third deck.h, fourth ha nd.h , fifth shuffle.h, sixth deck .cpp if you help me with this will be greatly thankful
Download the starter code main.cpp, card.h, deck. h, hand. h, shuffle.h, and deck.cpp. Do not modify the header files. We have provided main.cpp to give you an idea of how we intend to use the functions. Put the implementations into the files card.cpp, deck.cpp, and hand. cpp. Other cpp files must not contain a main function. You may not use any libraries aside from iostream, string, and cassert. You may not use global variables. We may take off up to 20% of the total marks for poor style: make sure to name your variables reasonably, indent properly, and comment sufficiently. Submit card.cpp, deck.cpp, and hand.cpp. Problem 1: (Card Write the member function implementations for the class card, which simulates the standard playing card, into the file card .cpp. The private data member int num represents the number of the card. 1 corresponds to an Ace, 11 to a Jack, 12 to a Queen, and 13 to a King. The private data member char suit represents the suit of the card. The 4 possible suits are 'C', 'D', 'H', and 'S'. The public method void see tNum (int n) sets the number of the card. assert that the input is between 1 and 13 The public method void sets uit. char s); sets the suit of the card. assert that the input is one of 'c', 'D', 'H', or 's'. The public method int get Num returns the number of the card. assert that the number is between 1 and 13. The public method char gets uit returns the suit of the card. assert that the suit is one of 'c', 'D', 'H', or 'S'. The public method
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
