Question: please do this C++ question. Create a program to shuffle and deal a deck of cards. The program should consist of class Card, class DeckofCards

 please do this C++ question. Create a program to shuffle andplease do this C++ question.

Create a program to shuffle and deal a deck of cards. The program should consist of class Card, class DeckofCards and a driver program. Class Card should provide: a) Data members face and suit of type int. b) A constructor that receives two ints representing the face and suit and uses them to initialize the data members. Class DeckofCards should contain: a) Two objects named deck to store two cards. c) A constructor that takes no arguments and initializes both cards in the deck. You can give these two cards a random face value and suit value, but make sure they are not same. d) A printCards function that prints the two cards. The driver program should create a DeckOfCards object, and print the cards that this object has. You need to have 5 files in this project: card.hpp, card.cpp, deckofcards.hpp, deckofcards.epp, main.cpp

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!