Question: program needs to be in C and must use linked lists , thanks a ton for the help!! Write a C program to Create a




program needs to be in C and must use linked lists, thanks a ton for the help!!
Write a C program to Create a full deck of 52 cards that are in order. In other words, for each of the four suits, the cards should be in order from Ace (1) through King (13). each card is consisted of 1) a suit [clubs (4),spades (4),hearts (w), or diamonds (*)) a face (1(Ace) 10, Jacks (J), Queens (Q), and Kings (K)) To simulate the deck of 52 cards, and each of the hands, your team MUST use a dynamic list of cards with the following struct type: typedef struct card s f char suit; int face; struct card s *next; car1 Print the deck that you create. 2) Shuffle the deck (52 cards). Note: Your code must have a ShuffleCard() function and should work with any size deck of cards, i.e. shuffling 53 cards, 20 cards or 5 cards One algorithm that you may use to shuffle the deck. Write a C program to Create a full deck of 52 cards that are in order. In other words, for each of the four suits, the cards should be in order from Ace (1) through King (13). each card is consisted of 1) a suit [clubs (4),spades (4),hearts (w), or diamonds (*)) a face (1(Ace) 10, Jacks (J), Queens (Q), and Kings (K)) To simulate the deck of 52 cards, and each of the hands, your team MUST use a dynamic list of cards with the following struct type: typedef struct card s f char suit; int face; struct card s *next; car1 Print the deck that you create. 2) Shuffle the deck (52 cards). Note: Your code must have a ShuffleCard() function and should work with any size deck of cards, i.e. shuffling 53 cards, 20 cards or 5 cards One algorithm that you may use to shuffle the deck
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
