Question: So I need help with this program. Thank you for your help and please read and follow the directions. Thanks, You are a lifesaver. The

So I need help with this program. Thank you for your help and please read and follow the directions. Thanks, You are a lifesaver. The sooner it is done the better, But don't feel like you have rush through it. Thanks!

So I need help with this program. Thank you for your helpand please read and follow the directions. Thanks, You are a lifesaver.The sooner it is done the better, But don't feel like you

Here is the directions given to us. The two executables take two optional arguments:-seed-N where N is a non- negative integer for seeding the random number generator, and-verbose causes the random_card() function to print each card to stdout before returning it to the calling function. Make hw1a.cpp Generate suit cards randomly until all face cards of a suit type has been generated. Next print a table showing how many cards of each suit and rank you were dealt along the way. Flag the suit that caused termination by adding"*" at the end its output line. The first step is to work on how to parse the String representing a card into suit and rank and translate those into the indices for the corresponding global string arrays. That is, reverse engineer what the random_card() function does. Caveat: Do not simply use integer division to reverse the modulo arithmetic, instead use string comparisons. Test the code by temporarily printing the suit and rank indices to stdout Break out of the loop after some small number of iterations. The next step is to add a table that keeps track of which cards you are dealt (counts of suit and rank pairs). Implement this table using a static two-dimensional whose content you initialize to zero before entering the while loop. The table should have 4 rows and 13 columns corresponding to the fixed number of suits and the number of ranks, respectively Lastly, replace the finite number of iterations termination criterion with the one requested which is based on all face cards having been seen for a given suit. That is, step thru the table for each suit and set a

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!