Question: So I am having trouble with this program. I am completely lost and need your help. I have the directions below and the example output.

So I am having trouble with this program. I am completely lost and need your help. I have the directions below and the example output. Please add comments so I can better understand whats going on and easily follow you. Please try to replicate the output as close to possible like the "**" at the end of each suit with King, queen, jack seen. I have also provided the sample code that was used. thanks for your help! If you have any questions just comment and ill get back to you ASAP!

So I am having trouble with this program. I am completely lostand need your help. I have the directions below and the example

output. Please add comments so I can better understand whats going on

For this program vrite code and have it keep track of the order in which a card rank is observed for each suit. You do this by inserting the cards at the back of linked lists, using one list for each suit. The exception applies: each time a rank is seen again, the carc gets moved to the front of the list. When King, Queen, and Jack are all seen add "**" on the end of the line, break the infinite-loop and print the contents of each linked list to stdout as shown below. Add an array of linked lists: the length of the airray is fixed at 4 like before, while the length of each linked list varies from suit to suit. Each new card is added to the appropriate list thru use of an insert() function. Declare a list class based on a single linked list. The list class needs to define a private node datatype, and it must include a constructor for properly initializing an empty list, a destructor for deallocating all the nodes in a list as well as the list itself, and the mentioned insert function which works as described next; no other list class functions are needed. Overload operator

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!