Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For C Programming Language Please meet these requirements: The following is the program that you should complete for the course project. You have the remaining

For C Programming Language

Please meet these requirements:

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

The following is the program that you should complete for the course project. You have the remaining weeks of this course to complete this project. You must also write a lab report that contains: Introduction: A one page writing the describes the game and how your program solves this problenm Body: contains the code (well commented) and code descriptions. Conclusion: What have you learned in this project, your approach of solving and debugging the code, future enhancements Extra credit for the project: you may add graphics for the cards for extra credit. 7.12 (Card Shuffling and Dealing) Modify the program in Fig. 7.24 so that the card-dealing function deals a five-card poker hand. Then write the following additional functions a. Determine whether the hand contains a pair. b. Determine whether the hand contains two pairs c. Determine whether the hand contains three of a kind (e.g., three jacks) d. Determine whether the hand contains four of a kind (e.g., four aces) e. Determine whether the hand contains a flush (i.e., all five cards of the same suit) f. Determine whether the hand contains a straight (i.e., five cards of consecutive face values) 7.13 (Project: Card Shuffling and Dealing) Use the functions developed in Exercise 7.12 to write a program that deals two five-card poker hands, evaluates each, and determines which is the better hand 7.14 (Project: Card Shuffling and Dealing) Modify the program developed in Exercise 7.13 so that it can simulate the dealer. The dealer's five-card hand is dealt "face down" so the player cannot see it. The program should then evaluate the dealer's hand, and based on the quality of the hand, the dealer should draw one, two or three more cards to replace the corresponding number of unneeded cards in the original hand. The program should then reevaluate the dealer's hand. [Caution: This is a difficult problem!] 7.15 (Project: Card Shuffling and Dealing) Modify the program developed in Exercise 7.14 so that it can handle the dealer's hand automatically, but the player is allowed to decide which cards of the player's hand to replace. The program should then evaluate both hands and determine who wins. Now use this new program to play 20 games against the computer. Who wins more games, you or the computer? Have one of your friends play 20 games against the computer. Who wins more games? Based on the results of these games, make appropriate modifications to refine your poker-playing program (this, too, is a difficult problem). Play 20 more games. Does your modified program play a better game

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database 11g SQL

Authors: Jason Price

1st Edition

0071498508, 978-0071498500

More Books

Students also viewed these Databases questions