Question: Please write a detailed MATLAB code. Hints are given in the picture. Use Matlab to make a classic Card Sharks game. Carefully follow every instruction
Use Matlab to make a classic "Card Sharks" game. Carefully follow every instruction and clearl address each item below and show all work including Matlab code with comments The card Sharks game consists of 20 rounds. The player begins with 0 points. Each round goes like this 1. the dealer (your Matlab program) picks a card at random from a full deck and displays it to the player 2. the dealer asks "will the next card be higher or lower?" 3. the player selects higher or lower 4. the dealer picks a second card from another full deck 5. if the player guessed correctly, 10 points are added to the play munning total If incomect 10 points are subtracted. Your assignment is to write a matlab program that implements this game, and then to play the game yourself end of your code. What to do when the second card is THE SAME as the first? Two different groups will deal with this differently: If your student number ends with an EVEN digit, then you ADD 10 points if the cards are the same. If your student number ends with an ODD digit, then you SUBTRACT 10 points if the cards are the same. Note that only the rank of the cards matters not the suit (diamonds, spades
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
