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!


Write a program that asks for the name and number of points scored by two basketball players.

Pri

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:40
When you type the pwd command, you notice that your current location on the linux filesystem is the /usr/local directory. answer the following questions, assuming that your current directory is /usr/local for each question. a. which command could you use to change to the /usr directory using an absolute pathname? b. which command could you use to change to the /usr directory using a relative pathname? c. which command could you use to change to the /usr/local/share/info directory using an absolute pathname? d. which command could you use to change to the /usr/local/share/info directory using a relative pathname? e. which command could you use to change to the /etc directory using an absolute pathname? f. which command could you use to change to the /etc directory using a relative pathname?
Answers: 3
question
Computers and Technology, 24.06.2019 11:30
Why is body language an important factor in a business meeting
Answers: 1
question
Computers and Technology, 24.06.2019 20:00
Avirus enters a computer or network as code embedded in other software directly from another computer
Answers: 1
question
Computers and Technology, 24.06.2019 23:00
Why is it preferable to code web pages in html format? a. to create more lines code b. to apply general formatting rules c. to display properly as search results in all browsers d. to add meaning to the document
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
Mathematics, 05.02.2021 17:50
question
Mathematics, 05.02.2021 17:50
question
Mathematics, 05.02.2021 17:50