Question: Purpose: - Use arrays. Model a Card Deck and two hands of cards. Deal cards from the deck to the two hands. Description: ----------- This
Purpose: - Use arrays. Model a Card Deck and two hands of cards. Deal cards from the deck to the two hands. Description: ----------- This is not an actual game, just deal cards to two players. Create a deck/array of 52 cards and two hands/arrays of 5 cards each. Write two functions, one to shuffle a deck, and another to deal a card from a deck. Deal cards and place them into the two hands until each hand holds 5 cards. Notes: ----- - Display the entire shuffled deck. - Display the hands after each card is dealt. - Display both hands when the dealing is done. - Display the remainder of the shuffled deck after the hands have been dealt. Make sure you have functions to do the following: 1) shuffle the deck 2) deal a card from the deck 3) display a card, indicating suit and value
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
