Question: Using Matlab 3) You are running a magic trick where you are trying to guess a user's card. Write a code where you use a
3) You are running a magic trick where you are trying to guess a user's card. Write a code where you use a random number generator to output a number/face card (1-13 where 1 = Ace, 11=Jack, 12=Queen, 13 = King) and another random number generator to select a suit (Hearts, Diamonds, Spades, Clubs) from a standard deck of cards. Print out "Is the (number/face card) of (suit) your card?". Make sure to convert 1 to Ace, 11 to Jack, 12 to Queen, and 13 to King for the face cards before printing out the statement. Only one iteration is needed
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
