Question: I was wondering how do change the code to where it distributes 5 cards to the use instead of letting them enter the under of
I was wondering how do change the code to where it distributes 5 cards to the use instead of letting them enter the under of cards. this is the assignment my professor gave me. ill send you what i have so far. After you read and familiarize yourself with the "Classifying a Poker Hand" program that we discussed during our class today (March 21, Tuesday), modify and rewrite the code to do the following: - The program will not ask the user to enter five cards, instead the program will pick five random cards. - Before the program picks the five random cards, it should mix (shuffle) the cards (52 cards), as follows:
1) The user will select the number of mix iterations, and the start position (0 to 41) of the set of 10 cards in each iteration.
2) In each iteration, take a set of 10 adjacent cards and mix them (use any mechanism for mixing, you might utilize the quicksort ascending/descending algorithms if you want).
3) Then, place the mixed 10 cards into the top of the deck (card positions 0 to 9). Continue mixing until done. At the end of the mixing phase, the program will pick five random cards and display them with the resulting classifications.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
