Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi. I am writing in C++ language and I would like some help with this program please. Any good help will be much appreciated. Thank

Hi. I am writing in C++ language and I would like some help with this program please. Any good help will be much appreciated. Thank you so much in advance.

image text in transcribed

babyn ames 2014 Notepad File Edit Format View Help Noah Emma Olivia Liam Sophia Mason Jacob Isabella William Ava Ethan Mia Michael Emily You have a data file that contains the 1000 most 8 Alexander Abigail James Madison popular baby names of 2014 (babynames Daniel Charlotte 10 11 2014.txt). Benjamin Sofia 12 13 Avery The file has 1000 lines in it, each of which has a 15 Aiden Amelia Elizabeth Jayden 14 Matthew Evelyn 16 rank, the boy name for that rank, and the girl Jackson Ella 17 David Chloe 18 name for that rank: victoria 19 Lucas Joseph Aubrey 20 Anthony Grace 21 Andrew 22 Zoey. Samuel Natalie 23 Gabriel Addison 24 Joshua Lillian 25 Brooklyn 26 John 27 Carter Lily Luke Hannah 28 Layla 29 Christopher 30 Scarlett aria 21 boys 2014 Notepa girls 2014 Notepac File Edit Format File Edit Format Noah Emma 2 Liam 2 Olivia 3 Mason 3 Sophia Your goal is to read the data in that file into 4 Jacob 4 Isabella two separate vectors, one for girls and one for 5 William 6 Ethan 5 Ava (6 Mia. 7 Michael boys, then write the data in each vector to 7 Emily 8 Alexander separate files, one for girls and one for boys. 9 Madison 9 James 10 Daniel 10 Charlotte 11 Harper 12 Benjamin You should only store the names in the 12 Sofia 13 Avery vectors. You should not store the position as 14 Elizabeth 15 Jayden 15 Amelia you process. 16 Matthew 16 Evelyn 17 Jackson 17 Ella 18 David 18 Chloe However, your output for each file should also 19 Lucas 19 victoria 20 Joseph 20 Aubrey include the correct rank. 21 Anthony 21 Grace 22 Andrew 22 Zoey. 23 Natalie 23 Samuel 24 Gabriel 24 Addison 25 Joshua. 25 Lillian 26 John 26 Brooklyn 27 Carter 27 Lily 28 Luke 28 Hannah lan 29 Layla 29 topher 30 Scarlett A 4 21 21

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Handbook Of Database Security Applications And Trends

Authors: Michael Gertz, Sushil Jajodia

1st Edition

1441943056, 978-1441943057

More Books

Students also viewed these Databases questions