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, 23.06.2019 14:30
Choose the answers that best complete each sentence. on average,are more expensive than other kinds of postsecondary schools. the cost of room and board includes. to save money, some students attend auniversity in their home state.
Answers: 2
question
Computers and Technology, 23.06.2019 17:30
Scientists have changed the model of the atom as they have gathered new evidence. one of the atomic models is shown below. what experimental evidence led to the development of this atomic model from the one before it? a few of the positive particles aimed at a gold foil seemed to bounce back. the colors of light emitted from heated atoms had very specific energies. experiments with water vapor showed that elements combine in specific proportions. cathode rays were bent in the same way whenever a magnet was brought near them.
Answers: 2
question
Computers and Technology, 24.06.2019 01:00
How can the temperature of a room be raised by 5degreesf?
Answers: 1
question
Computers and Technology, 24.06.2019 18:20
Use a while-end loop in a script file to calculate the sum of the first n terms of the series: summation sign on the top n bottom k=1 : )^k * k^2 +5k)/3^k show the script file and the two results of n = 10 and n = 20.
Answers: 2
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
Social Studies, 22.08.2019 09:10
question
Mathematics, 22.08.2019 09:10
question
Mathematics, 22.08.2019 09:10
Questions on the website: 13722367