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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started