subject

Write a program that asks for the name and number of points scored by two basketball players. Print out the players scores in alphabetical order according to the players names user the string method compareTo.

Then print which player scored more points. Here is an example output and what I have so far:

-Example output-

Enter player one’s name:

Tracy

Enter player two’s name:

Karen

Enter Tracy’s score

13

Enter Karel’s score

20

Karel scored 20 points

Tracey scored 13 points

Karel wins!

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:10
Is the following an example of social media viral marketing? indicate your response by selecting yes or no. when you sign onto your favorite social networking website, you get messages from friends who have seen a television show they thought was a "must see! "
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
To check spelling errors in a document, the word application uses the to determine appropriate spelling. internet built-in dictionary user-defined words other text in the document
Answers: 2
question
Computers and Technology, 23.06.2019 18:30
List 3 items that were on kens resume that should have been excluded
Answers: 1
question
Computers and Technology, 24.06.2019 15:30
During the software planning process, rick, a project manager, finds that his team has made an incorrect estimation of funds. what kind of risk has rick identified? rick has identified a risk.
Answers: 1
You know the right answer?
Write a program that asks for the name and number of points scored by two basketball players. Print...
Questions
question
Physics, 29.06.2019 08:40
question
Mathematics, 29.06.2019 08:40
question
Mathematics, 29.06.2019 08:40
Questions on the website: 13722367