Can someone please write a C++ code for this question using safe user IO, arrays, and dynamic memory?

Design an ADT to represent a standard pack of playing cards. 4 suits (hearts, clubs, diamonds, spades) with 13 cards per suit (2-10, Jack, Queen, King, Ace).
 Your ADT should declare two types: CARD and DECK
 CARD being a struct representing an individual card
DECK being an array of up to 52 cards in a standard deck of playing cards.
Declare and implement functions to perform the following common tasks;
 Initialise a new DECK, containing 1 of each card
 Shuffle a DECK – randomly reorganising the order of the cards
 Deal 4 hands of N cards – resulting in the formation of 4 arrays of CARDS, and the “left over” cards in the original DECK.
 Output functions which display a CARD on the standard output device cout.
Create a program to demonstrate the operation of your ADT.
Topic archived. No new replies allowed.