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, 22.06.2019 02:30
Write a program that takes in 3 inputs [players (int type), expected game time (double type), team (char type)] and calculates actual game time (double) based on the following conditions: if the number of players or the expected game time is less than or equal to zero, it should output wrong input if the number of players is greater than 0 and less than or equal to 6 and if they are on the â€r’ or â€r’ team, their game time will be 10% faster. and if they are on the â€b’ or â€b’ team, their game time will be 15% faster. and if they are on the â€y’ or â€y’ team, their game time will be 20% faster. and if they are on any other team, they will play 0% faster. if the number of players is greater than 6 but less than or equal to 12 and if they are on the â€r’ or â€r’ team, their game time will be 20% faster. and if they are on the â€b’ or â€b’ team, their game time will be 25% faster. and if they are on the â€y’ or â€y’ team their game time will be 30% faster. and if they are on any other team, they will play 0% faster. if the number of players is greater than 12 but less than or equal to 18 and if they are on the â€r’ or â€r’ team, their game time will be 30% faster. and if they are on the â€b’ or â€b’ team, their game time will be 35% faster. and if they are on the â€y’ or â€y’ team, their game time will
Answers: 2
question
Computers and Technology, 23.06.2019 02:50
There’s only one game mode that stars with the letter ‘e’ in cs: go. which of the options below is it?
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. which step can possibly increase the severity of an incident? a. separating sensitive data from non-sensitive data b. immediately spreading the news about the incident response plan c. installing new hard disks d. increasing access controls
Answers: 2
question
Computers and Technology, 23.06.2019 15:00
Jake really works well with numbers and is skilled with computers but doesn't work well with others. which of the jobs discussed in this unit might be best for jake? why?
Answers: 3
You know the right answer?
Write a program that takes user input describing a playing card in the following shorthand notation:...
Questions
question
Mathematics, 15.10.2021 01:50
question
Mathematics, 15.10.2021 01:50
Questions on the website: 13722363