Write a piece of code that reads a shorthand text description of a playing card and prints

Question:

Write a piece of code that reads a shorthand text description of a playing card and prints the longhand equivalent. The shorthand description is the card’s rank ( 2 through 10, J, Q, K, or A ) followed by its suit ( C, D, H, or S ). You should expand the shorthand into the form “ of ”. You may assume that the user types valid input. Here are two sample executions:

Enter a card: 9 s Nine of Spades Enter a card: K C King of Clubs

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: