Question: Please answer the follow in c++ Create a class named PlayingCard. The class contains four fields for a standard playing card: a value in numeric
Please answer the follow in c++
Create a class named PlayingCard. The class contains four fields for a standard playing card:
a value in numeric (e.g. 12) .
a value in string format (e.g. "Queen").
a suit in numeric (e.g. 1).
a suit in string format (e.g. "spade").
Each PlayingCard is assigned its values upon construction.
Write a main() function that plays a card game where the objective is to have the greatest number of pairs; a pair is composed of two cards of the same value in different suits. Randomly deal five cards each to a player and to a computer. Make sure there are no duplicate cards, as would be the case using a standard playing card deck. (For example, a deck can contain four fives and 13 spades, but only one five of spades.) Count the number of matching cards for the player and for the computer, and announce a winner or a tie.
For this game assume that a pair beats no matching cards, three of a kind beats a pair, four of a kind beats three of a kind, and five of a kind beats four of a kind. Card values do not affect the outcome-for example, two eights are no better than two sevens. Also assume two pairs are no better than a pair.

Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
