Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

ASSIGNMENT: In C++, write a program that will operate on a deck of 52 cards. You

ID: 3705273 • Letter: A

Question

ASSIGNMENT: In C++, write a program that will operate on a deck of 52 cards. Your program will:1.Deal them into four random hands of 5 cards eacha.The four hands need to be kept in an array for later use.2.Sort each hand so that it shows the cards in sequence from two as the lowest to ace as the highest.3.Display the cards in each hand using the card face (2, 10, King, etc.) and the suit (Spades, Hearts, etc.)4.Display what you determined the hand to be. A ranking of poker hands is at http://www.pagat.com/vying/pokerrank.htmla.Straight flushb.Four of a kindc.Full Housed.Flushe.Straightf.Three of a kindg.Two pairh.One pairi.Highest card5.Each time the program is run, a different setof hands is to be dealt.BONUS:Determine which is the winning hand. A tie is possible. (25 points)NOTES:1.Use a structure to hold the face value and suit of each card.2.Use arrays to hold the deck of cards and the hands.3.Use enumerations for the values of Jack, Queen, King, and Ace and to identify the suits (Diamonds, Clubs, etc.). NOTES:You may not use classes.

Explanation / Answer

I have added two file below.

Go through the below code save the below code with the given names.

main.cpp

card.h

#ifndef CARD_H