Question: Write a program that simulates picking a card from a deck of 52 cards. Your program should display the rank (Ace, 2, 3, 4, 5,
Write a program that simulates picking a card from a deck of 52 cards. Your program should display the rank (Ace, 2, 3, 4, 5, 6, 7, 8, 9, 10, Jack, Queen, King) and suit (Clubs, Diamonds, Hearts, Spades) of the card. Here is a sample run of the program:
The card you picked is Jack of Hearts.
Step by Step Solution
3.42 Rating (168 Votes )
There are 3 Steps involved in it
Program plan Pick a random number between 0 and 51 inclusive as a card from a deck Find ... View full answer
Get step-by-step solutions from verified subject matter experts
