Answered! Homework 8 Due 5pm, Wednesday, May 31, 2017 Download the starter code main.cpp, card.h, deck. ht hand. h,…

Please provide full answer with comments me to better understand material thank you

Homework 8 Due 5pm, Wednesday, May 31, 2017 Download the starter code main.cpp, card.h, deck. ht 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 nain 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 set Num (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 get Suit returns the suit of the card. assert that the suit is one of C, D, H, or S. The public method
media%2F110%2F1105df28-3f34-445f-945a-fbFirst screenshot is main.cpp second card.h third deck.h fourth hand.h fifth shuffle.h and 6th main.cpp
media%2Fdf3%2Fdf3b3f18-e52f-4b04-8d2d-ec
media%2Fcd7%2Fcd7876cb-3d05-4267-af6e-72
media%2F40f%2F40f9d553-1001-4eed-86b3-f5
media%2F15c%2F15cdf8b2-1b86-4703-a6e6-8a
media%2F27c%2F27c87d4f-0350-457b-8315-bd
media%2F304%2F3043f5e6-6a3a-4aad-86a9-86If you help me with this will be greatly thankful

Homework 8 Due 5pm, Wednesday, May 31, 2017 Download the starter code main.cpp, card.h, deck. ht 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 nain 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 set Num (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 get Suit returns the suit of the card. assert that the suit is one of ‘C’, ‘D’, ‘H’, or ‘S’. The public method

Expert Answer

 Source code:

Card.cpp:

Deck.cpp:

(Need more information to implement the hand.cpp).

Still stressed from student homework?
Get quality assistance from academic writers!