subject

Write a program that takes user input describing a playing card in the following shorthand notation: a ace 2 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: qs queen of spades. implement a class card whose constructor takes the card notation string and whose getdescription method returns a description of the card. if the notation string is not in the correct format, the getdescription method should return the string "unknown".use the following class as your main class: import java. util. scanner; /**this is a test for the card class, which outputs the fulldescription of a deck of cards.*/public class cardprinter{public static void main(string[] args){scanner in = new scanner(system. in); system. out. println("enter the card notation: "); string input = in. nextline(); card card = new card(input); system. out. println(card.; }}

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 19:30
Entering key dates from your course syllabi test and quiz dates, assignments due dates in your planner can you manage your schedule by allowing you to see commitments ahead of time.
Answers: 3
question
Computers and Technology, 22.06.2019 15:00
Which of the following has not been attributed at least in part to social media a. drug addiction b. depression c. kidnapping d. murder
Answers: 2
question
Computers and Technology, 22.06.2019 18:00
What is the first view you place in your drawing?
Answers: 1
question
Computers and Technology, 23.06.2019 04:31
Acloud service provider uses the internet to deliver a computing environment for developing, running, and managing software applications. which cloud service model does the provider offer? a. iaas b. caas c. maas d. paas e. saas
Answers: 1
You know the right answer?
Write a program that takes user input describing a playing card in the following shorthand notation:...
Questions
question
Mathematics, 25.11.2020 18:00
question
Mathematics, 25.11.2020 18:00
question
Mathematics, 25.11.2020 18:00
question
Spanish, 25.11.2020 18:00
question
English, 25.11.2020 18:00
question
Mathematics, 25.11.2020 18:00
question
Mathematics, 25.11.2020 18:00
Questions on the website: 13722367