Question: *12.1 (Name for both genders) Write a program that prompts the user to enter one of the filenames described in Exercise 12.31 and displays the

*12.1 (Name for both genders) Write a program that prompts the user to enter one of the filenames described in Exercise 12.31 and displays the names that are used for both genders in the file. Here is a sample run:

Enter a file name for baby name ranking: Babynamesranking2001.txt 69 names used for both genders They are Tyler Ryan Christian ... The original question had me enter a URL and file to access all the data, but the website no longer contains the files we are told to use. I am not sure how to show the files in this post, but they are listed as: babynamesranking2001.txt babynamesranking2002.txt babynamesranking2003.txt babynamesranking2004.txt

I guess if someone could just show me how to access and print the required data values from a file as described above then I could figure it out for these files.

This is originally a C++ programming question, but we are doing it in Java. I was hoping someone would know how to do it.

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 Databases Questions!