Question: Most Popular Baby Names in Texas. Write a program (called q2.py) that counts popular baby names within a given period of time in the state

Most Popular Baby Names in Texas. Write a program (called q2.py) that counts popular baby names within a given period of time in the state of Texas. For your program, you will use the le TX.csv, which is a CSV le of the most popular baby names in Texas between the years 1910 and 2013. The le was compiled by the Social Security Administration. Each line in the TX.csv le has the following format: (i) the 2-digit state code (TX), (ii) gender (M = male or F = female), (iii) year of birth, (iv) baby name, and (iv) the number of occurrences of the name for that year. Fields are delimited with a comma.

Please in python coding, and it should give a continuing code that will only stop with quit.

Most Popular Baby Names in Texas. Write a program (called q2.py) thatcounts popular baby names within a given period of time in the

1. Mast Papalar Baby Nam in 7ezas. Write a program (ralled q2.py) that entants popular baby names withia a given period of time iu the state of Texas. For your program, you will use the file TT whinh is a CSV file of the most popular baby names in Texas between the years 910 and 2013. The file was piled by the Soni Seeturity Administratinn. Earh line in the TI. esT file haus the following format: (il the 2-digit state code (TX), (ii) gerader (M uaale or F feraale), (iiil year of birth, (i) baby name, and (iv) thr nuraler of oerurrenres of the mame for that year, Fields delimited with Your program will prompt the user for a beginning and ending year to show the most frequent baby names for a given gender. For example, the five mor frequent Dames for boys starting ia 2000 and ending in 2013 are as follows. Jose (3,4330 Jarola (32,251) Daniel (27,736 Joshua (27,44 Christopher (%,742) That is, bet the years 2000 and 2013, Ja was the mont popular name with a frequenry of 34,433; Jama was the serred most popalar name with a frequenny of 32,25l: ete. Within the same time period, the five mast popular girl names and their nnumber of Emily (26,979 Isabella (20,37) Emma (19,5RI) Madison (19,530) Abigail (18,731) Programming tips. Before writing the program, take a look at the TI T file to make sure you understand what's in the file. There am over 317,E00 lines (or names) in the file, You'll need to use a dietionary for this problem. What will the leys and valtores be for your diet Onre you've defined your ditionary, yoa will invert it when printing out the result in the most frequent order Note: Whena priating out the fregaaruary, make to add nouamas as aerded. Example. The program starts by assuming the user wa ts to analyze the Dames of boys. At the 'o' prompt, the usar types 1910 1910 (lime 1). The five most frequent names for boys (and their number of aretarrenres) is then shown the time period beginning and ending in 1910 (lines 2-6). The taser switches to girl names by typing girl. The five most frequent baby names for girk beginning and ending in 1910 (line B) is then shown (lines 9-13). For the years 2000 to 2013 (line 14 lines 15-19 show the most popular girl names. The user switches to boy names by typing bay (line 20). The 1. Mast Papalar Baby Nam in 7ezas. Write a program (ralled q2.py) that entants popular baby names withia a given period of time iu the state of Texas. For your program, you will use the file TT whinh is a CSV file of the most popular baby names in Texas between the years 910 and 2013. The file was piled by the Soni Seeturity Administratinn. Earh line in the TI. esT file haus the following format: (il the 2-digit state code (TX), (ii) gerader (M uaale or F feraale), (iiil year of birth, (i) baby name, and (iv) thr nuraler of oerurrenres of the mame for that year, Fields delimited with Your program will prompt the user for a beginning and ending year to show the most frequent baby names for a given gender. For example, the five mor frequent Dames for boys starting ia 2000 and ending in 2013 are as follows. Jose (3,4330 Jarola (32,251) Daniel (27,736 Joshua (27,44 Christopher (%,742) That is, bet the years 2000 and 2013, Ja was the mont popular name with a frequenry of 34,433; Jama was the serred most popalar name with a frequenny of 32,25l: ete. Within the same time period, the five mast popular girl names and their nnumber of Emily (26,979 Isabella (20,37) Emma (19,5RI) Madison (19,530) Abigail (18,731) Programming tips. Before writing the program, take a look at the TI T file to make sure you understand what's in the file. There am over 317,E00 lines (or names) in the file, You'll need to use a dietionary for this problem. What will the leys and valtores be for your diet Onre you've defined your ditionary, yoa will invert it when printing out the result in the most frequent order Note: Whena priating out the fregaaruary, make to add nouamas as aerded. Example. The program starts by assuming the user wa ts to analyze the Dames of boys. At the 'o' prompt, the usar types 1910 1910 (lime 1). The five most frequent names for boys (and their number of aretarrenres) is then shown the time period beginning and ending in 1910 (lines 2-6). The taser switches to girl names by typing girl. The five most frequent baby names for girk beginning and ending in 1910 (line B) is then shown (lines 9-13). For the years 2000 to 2013 (line 14 lines 15-19 show the most popular girl names. The user switches to boy names by typing bay (line 20). The

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!