Question: Using C PROGRAMMING make a code that: (please type out code, have recently had people hand write code and its impossible to follow and read

Using C PROGRAMMING make a code that: (please type out code, have recently had people hand write code and its impossible to follow and read i am not using this for copy and pasting, im trying to understand functions better and need help with a card game project.)

(a little backstory, the assignment is to make a card game of 52 cards where the user will recieve 5 random cards from the deck and the computer will recieve 5 random cards, the program will add up the cards and whoever has highest points gets a point, whoever has the highest points when the user wants to stop playing wins)

make a deck of 52 cards (no jokers) using a function called - void create_deck(int deck[]);

Then make another function that will shuffle these cards called - void shuffle_deck(int size, int deck[]);

then make another function called void display_hand(int size, int hand[]); This function calls display_card()size number of times to display a players hand.

then make another function called void display_card(int card);

a. This function accepts an encoded number representing one of the 52 possible cards and displays the cards face and suite. Example display is below:

6 of Clubs

Ace of Diamonds

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!