Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Hi! How can I make a program in C++ for the following problem? Thank you. concepts: deal 52 cards into 4 different Using random number
Hi! How can I make a program in C++ for the following problem? Thank you.
concepts: deal 52 cards into 4 different Using random number generation, and multonal array/structure hands (P, Q R, and S), 13 cards each hand. The 4 colors are Spades, Hearts, Diamonds and Clubs. 13 cards are: 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 4 times(75% of the time). (d) Extend the game to 8 players (P.QR, S, T, U, V, W) 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)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started