Question: Java Write a program that records high-score data for a fictitious game. The program will ask the user to enter five names, and five scores.
Write a program that records high-score data for a fictitious game. The program will ask the user to enter five names, and five scores. It will store the data in memory, and print it back out sorted by score 3 The output from your program should look approximately like this Enter the name for score #1: Suzy Enter the score for score #1: 600 Enter the name for score #2: Kim Enter the score for score #2: 9900 Enter the name for score #3: Bob Enter the score for score #3: 1012 Enter the name for score #4: Armando Enter the score for score #4 : 8000 Enter the name for score #5: Tim Enter the score for score #5: 514 Top Scorers: Kim: 9900 Armando: 8000 Bob: 1012 Suzy: 600 Tim: 514 The data must be stored in two ArrayLists: one ArrayList of strings named names, and one ArrayList of Integers named scores. These ArrayLists must be declared in the main method All of the user input should be done in a method named initialize. It should have the following signature public static void initialize (ArrayList
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
