a. Write a structure (struct card) that will represent a card in a standard deck of playing cards. You will need to represent both the suit (clubs, diamonds, hearts orspades) as well as the rank (A, K, Q, J, 10, 9, 8, 7, 6, 5, 6, 7, 2) of each card. Note that a deck of playing cards can be represented as an array declared asstruct card deck[52]. b. Write a function that will perform a perfect shuffle on a deck of cards represented using the data structures from part a. In a perfect shuffle, the deck is broken exactly in half and rearranged so that the first card is followed by the 27thcard, followed by the second card, followed by the 28thcard, and so on. c. Write a program that tests how many perfect shuffles are necessary to return the deck to its original configuration.
+3
Answers (1)
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “a. Write a structure (struct card) that will represent a card in a standard deck of playing cards. You will need to represent both the suit ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Home » Computers & Technology » a. Write a structure (struct card) that will represent a card in a standard deck of playing cards. You will need to represent both the suit (clubs, diamonds, hearts orspades) as well as the rank (A, K, Q, J, 10, 9, 8, 7, 6, 5, 6, 7, 2) of each card.