Question: USING C++ You have a data file that contains the 1000 most popular baby names of 2014 (babynames 2014.txt). The file has 1000 lines in
USING C++
You have a data file that contains the 1000 most popular baby names of 2014 (babynames 2014.txt). The file has 1000 lines in it, each of which has a rank, the boy name for that rank, and the girl name for that rank.
Your goal is to read the data in that file into two separate vectors, one for girls and one for boys, then write the data in each vector to separate files, one for girls and one for boys. You should only store the names in the vectors. You should not store the position as you process. However, your output for each file should also include the correct rank.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
