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:00
During physical science class ben and jerry connected three identical lightbulbs in parallel to a battery where happens when ben removes one of the lightbulbs from it’s socket
Answers: 2
question
Computers and Technology, 22.06.2019 22:20
Pp 4.1 design and implement a class called sphere that contains instance data that represents the sphere’s diameter. define the sphere constructor to accept and initialize the diameter and include getter and setter methods for the diameter. include methods that calculate and return the volume and surface area of the sphere (see pp 3.5 for the formulas). include a tostring method that returns a one-line description of the sphere. create a driver class called multisphere, whose main method instantiates and updates several sphere objects.
Answers: 1
question
Computers and Technology, 24.06.2019 12:00
Jack is assisting his younger sibling mary with her mathematics assignment, which includes a study of the number system. jack explains to mary that whole numbers are counting numbers that could be used to record the number of fruits in a basket. which data type represents whole numbers? a.integers.b.floating-point numbers. c.strings.d.boolean
Answers: 1
question
Computers and Technology, 24.06.2019 15:30
What is not a type of text format that will automatically be converted by outlook into a hyperlink?
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, 14.06.2021 19:30
question
Mathematics, 14.06.2021 19:30
question
Mathematics, 14.06.2021 19:30
Questions on the website: 13722361