Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Baby Names There is a names.txt file that is downloaded. The names.txt file contains data about popular baby names over the last 80 years in

Baby Names

There is a names.txt file that is downloaded.

The names.txt file contains data about popular baby names over the last 80 years in the United States (http://www.ssa.gov/OACT/babynames). Every 10 years, the data gives the 1000 most popular boy names and girl names for children born in the US. The data can be summarized in the following format: ... Sam 99 131 168 236 278 380 467 408 466

Samantha 0 0 0 0 272 107 26 5 7 Samara 0 0 0 0 0 0 0 0 886 Samir 0 0 0 0 0 0 920 0 798 ... Each line has a name followed by the rank of that name in 1920, 1930, , 2000 (9 numbers). A rank of 1 was the most popular name for that decade, while a rank of 907 was not that popular. A 0 means that the name was out of the 1000 popular names for that decade. So, for example, Sam was the 99th most popular name in 1920.

Your program will give an introduction and then prompt the user for a name. Then it will read through the data file searching for that name. The search should be case-insensitive, meaning that you should find the name even if the file and the user use capital letters in different places. As an extreme example, SaMueL would match sAM ** Popularity of a baby name since year 1920 **

name? ada

1920: 154

1930: 196 1940: 244

... etc etc Then, you need to save the statistics into a result file for that baby name. For the example above, the result file should be named as Ada.txt, which should contain contents in the following format exactly: Ada 1920: 154 1930: 196 1940: 244 1950: 331 1960: 445 1970: 627 1980: 962 1990: 0 2000: 0

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

Seven Databases In Seven Weeks A Guide To Modern Databases And The NoSQL Movement

Authors: Luc Perkins, Eric Redmond, Jim Wilson

2nd Edition

1680502530, 978-1680502534

More Books

Students also viewed these Databases questions

Question

OUTCOME 6 Explain and give examples of diversity management.

Answered: 1 week ago