Computers and Technology
Computers and Technology, 15.12.2020 01:10, hailee24

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

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 10:40, Morghurley2000
"it security policy enforcement and monitoring" respond to the following: describe how monitoring worker activities can increase the security within organizations. describe the rationale that managers should use to determine the degree of monitoring that the organization should conduct. explain the extent to which you believe an organization has the right to monitor user actions and traffic. determine the actions organizations can take to mitigate the potential issues associated with monitoring user actions and traffic.
Answers: 3
image
Computers and Technology, 23.06.2019 13:30, small77
Font size, font style, and are all aspects of character formatting.
Answers: 2
image
Computers and Technology, 23.06.2019 15:30, taapeters
Brian wants to conduct an online search with a certain phrase. he intends to use the words books that belong to the 1800s in his search. how should he use the word that in his search?
Answers: 1
image
Computers and Technology, 24.06.2019 09:50, potatocow
Self contained sequences of actions to be performed are? a. expressions b. algorithms c. functions d. formulas
Answers: 1
Do you know the correct answer?
Write a program that asks for the name and number of points scored by two basketball players. Print...

Questions in other subjects:

Konu
Computers and Technology, 14.11.2019 12:31
Konu
Mathematics, 14.11.2019 12:31