Question: Write Program in C language Using random number generation, and multi-dimensional array/structure concepts: deal 52 cards into 6 different hands (M, N, O, P, Q,

Write Program in C language  Write Program in C language Using random number generation, and multi-dimensional

Using random number generation, and multi-dimensional array/structure concepts: deal 52 cards into 6 different hands (M, N, O, P, Q, R), 8 cards each hand. 4 Cards should be left out randomly: The 4 colors are Spades, Hearts, Diamonds and Clubs. 13 cards: A, K, Q, J, 10, 9, 8, 7, 6, 5, 4, 3, 2. Your software should eliminate any duplication of the cards. (a) Ace has a value of 13; King 12, and so on; Spades value of: 4, Hearts 3, Diamonds 2, and Clubs 1. (b) After each hand is dealt, calculate the total value each hand has in numerical value. (c) Highest score wins. P hand is the dealer and should win at least 3 out of 6 times [50% of the time]. (d) Extend the game to 8 players (M, N, O, P, Q, R, S, T) with 6 cards each and 4 cards remaining at random. Dealer hand P should win at least 3 out of 8 times [37.5% of the time] (e) Clearly explain in your report, how you are accomplishing these tasks

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!