Question: C code with a flags In this assignment, you will write C program that inputs lines from files where each line is in the following
In this assignment, you will write C program that inputs lines from files where each line is in the following format rank Male name Male number Female name Female number where, rank The ranking of the names on this line Male name A male name of this rank Male number Number of males with this name Female.name A female name of this rank Female number Number of females of this rank This is the format of database files obtained from the U.S. Social Security Administration of the top 1000 registered baby names (https://www.ssa.gov/OACT/babynames/index.hEach line begins with the rank, followed by the male name at that rank, followed by the number of males with that name, etc. Here is a part of an example file containing data from the year 2017. You may assume the fields are tab separated Liam 18728 Emma Noah 18326 0livia 18632 Wi11iam 14904 Ava James 14232 Isabella Logan 13974 Sophia 14831 19738 15902 15100 As you can see from the above, in 2017, there were 18728 male babies named Liam and 19738 female babies named Emma, making them the most popular names used in that year in U.S
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
