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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 19:00, dadonelson2109
If your accelerator suddenly gets stuck what should you do
Answers: 2
image
Computers and Technology, 23.06.2019 10:50, Leffew
The volume v and paper surface area a of a conical paper cup are given by where r is the radius of the base of the cone and h is the height of the cone. a. by eliminating h, obtain the expression for a as a function of r and v. b. create a user-de ned function that accepts r as the only argument and computes a for a given value of v. declare v to be global within the function. c. for v ! 10 in.3 , use the function with the fminbnd function to compute the value of r that minimizes the area a. what is the corresponding value of the height h? investigate the sensitivity of the solution by plotting v versus r. how much can r vary about its optimal value before the area increases 10 percent above its minimum value?
Answers: 1
image
Computers and Technology, 23.06.2019 12:40, melaniem50
Curriculum exam to process a resident's payment, you must click on onesite payments home page. from the a. reports b. my settings o c. transactions o d. rent tab
Answers: 1
image
Computers and Technology, 23.06.2019 15:20, manarhizam12
An ou structure in your domain has one ou per department, and all the computer and user accounts are in their respective ous. you have configured several gpos defining computer and user policies and linked the gpos to the domain. a group of managers in the marketing department need different policies that differ from those of the rest of the marketing department users and computers, but you don't want to change the top-level ou structure. which of the following gpo processing features are you most likely to use? a, block inheritance b, gpo enforcement c, wmi filtering d, loopback processing
Answers: 3
You know the right answer?
Write a program that asks for the name and number of points scored by two basketball players. Print...

Questions in other subjects:

Konu
Mathematics, 29.09.2019 10:30
Konu
Mathematics, 29.09.2019 10:30
Konu
Spanish, 29.09.2019 10:30
Konu
Chemistry, 29.09.2019 10:30