Help with Files into Vector assignment

Jul 29, 2022 at 10:33pm

If you have not downloaded the Gaddis text book’s source code, you will find the following files from chapter 7 folder provided here...

GirlNames.txt Download GirlNames.txt—This file contains a list of the 200 most popular names given to girls born in the United States from 2000 to 2009.

BoyNames.txt Download BoyNames.txt—This file contains a list of the 200 most popular names given to boys born in the United States from 2000 to 2009.

Program data structure requirement: Write a program that reads the contents of the two files into two separate vectors. The user should be able to enter a boy’s name, a girl’s name, or both, and the application should display messages indicating whether the names were among the most popular.
Jul 30, 2022 at 5:07am
So what's your question?

Help is where you study your course material, make an actual effort and post when you're stuck.

Start by reading one of the files into one vector.


Just dumping your assignment, hoping for a complete answer on a plate, just so you can con yourself and your tutor that you're learning isn't going to work.
Jul 30, 2022 at 9:57am
What help is required? Can you open/read from a file OK? Can you use a vector to store data? Can you iterate over a vector/find vector contents?

What are having difficulty with? Post your existing code so we can offer advice.
Topic archived. No new replies allowed.