View the step-by-step solution to:

* Write a program that takes user input describing a playing card in the following shorthand notation: Notation Meaning A Ace 2 . 10 10 Card values J...

* Write a program that takes user input describing a playing card in the following shorthand notation:

Notation Meaning
A Ace
2 . . . 10 10 Card values
J Jack
Q Queen
K King
D Diamonds
H Hearts
S Spades
C Clubs

- Your program should print the full description of the card. For example,
Enter the card notation:
4S
Four of Spades

- Implement a class card whose constructor takes the card notation string and whose getDescription method returns a description of the card.
- If notation string is not in the correct format, the getDescription method should return the string “Unknown”.
- hint: the program should be programmed by If statement.

* The question is attached.

* Write a program that takes user input describing a playing card in the following  shorthand notation: Notation Meaning Ace 2 . . . 10  10 Card values Jack Queen King Diamonds Hearts Spades Clubs Your program should print the full description of the card. For example,  Enter the card notation: 4S Four of Spades Implement a class card whose constructor takes the card notation string and  whose getDescription method returns a description of the card. If notation string is not in the correct format, the getDescription method should  return the string “Unknown”. 
Background image of page 1
Sign up to view the entire interaction

Top Answer

Dear Pls find the... View the full answer

ComputerScience_8408261.rar - Preview not available

Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Ask a homework question - tutors are online