Question: C++ please In this assignment, you will write a C++ program that receives part of a shuffled deck of playing cards and will note them

 C++ please In this assignment, you will write a C++ programthat receives part of a shuffled deck of playing cards and will

C++ please

In this assignment, you will write a C++ program that receives part of a shuffled deck of playing cards and will note them in a 2-dimensional array. The columns of the array, in order, are Spades, Hearts, Clubs, and Diamonds. Rows of the array are, in the order, the Ace, 2 to 10, then Jack, Queen, and King. Input: The input file contains a string listing some of the card's numbers and the first letter of its suit. - King denoted as K - Queen denoted as Q - Jack denoted as J - Ace denoted as 1 Each card is separated from the next one with ", "and you can assume all the inputs are in the correct form. See the example below as a valid input: QS, 8D, 4D, 1S, 10C, KH (Queen of Spades), (8 of Diamonds), (4 of Diamonds), (Ace of Spades), (10 of Clubs), (King of Hearts) Output: Your output file should contain a 2D array with the cards received from the input file. Note the cards received in the 2D array are noted with a 1 and the other cards that were not received are noted with a 0. Example: Input File: QS, 8D, 4D, 1S, 10C, KH Output File: 1000 0000 0000 0001 0000 0000 0000 0001 0000 0010 0000 1000 0100

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!