Answered step by step
Verified Expert Solution
Question
1 Approved Answer
c++ and its a file input with argumentmanager Overview: In this assignment, you will write a C++ program that receives part of a shuffled deck
c++ and its a file input with argumentmanager
Overview: 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 000000010000000000000001 0000 0010 0000 1000 0100Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started