Question: NameSurfer the driver class o The main method should read all the data from all the files in the names subfolder and store it in

NameSurfer the driver class o The main method should read all the data from all the files in the "names" subfolder and store it in two ArrayLists one for male names and one for female names of NameRecord objects. o It should then offer the following menu to the user: 1 Find best year for a female name 2 Find best rank for a female name 3 Find worst year for a female name 4 Find worst rank for a female name 5 Find a female name's rank in a specified year 6 Find best year for a male name 7 Find best rank for a male name 8 Find worst year for a male name 9 Find worst rank for a male name 10 Find a male name's rank in a specified year 11 Quit Enter your selection. o If 1,2,4, or 5 is entered, the program should prompt the user for a name, search for that name in the ArrayList (search should ignore case), print the desired information, and display the menu again. If the name is not found in the ArrayList, print an error message, and display the menu again. o If 3 or 6 is entered, the program should prompt the user for a name and year, search for that name in the ArrayList (search should ignore case), print the desired information, and display the menu again. If the name is not found in the ArrayList, print an error message, and display the menu again.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!