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, 22.06.2019 13:30
Asoftware company hired ray, a college graduate to work in their development team. ray is assigned to work in the coding phase of a project. what happens during the coding phase of a software development project? a. the customer receives a working model of the software. b. developers convert the program design into code. c. developers gather requirements directly from the stakeholders. d. testing teams check the product for quality.
Answers: 1
question
Computers and Technology, 22.06.2019 17:30
Type the correct answer in the box. spell all words correctly. under which key category do the page up and page down keys fall? page up and page down keys fall under the keys category.
Answers: 3
question
Computers and Technology, 23.06.2019 02:30
Experimental data that is expressed using numbers is said to be
Answers: 1
question
Computers and Technology, 23.06.2019 22:20
What is a programming method that provides for interactive modules to a website?
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, 01.07.2019 05:00
question
Mathematics, 01.07.2019 05:00
question
Spanish, 01.07.2019 05:00
Questions on the website: 13722363