Question: write a code in C++ Objective: practice using IO Streams The babynames.txt file, which can be found in our course web site, contains a list

write a code in C++

Objective: practice using IO Streams The babynames.txt file, which can be found in our course web site, contains a list of boy and girl names in the states. The first column is the name, second column is its percentage; third column is accumulative percentage and fourth column is the ranking of the name. Write a program to finish the following two tasks: 1. Allows the user to input a name, your program should read from the file and search for a matching name. if a match is found, it should output the rank of the name. 2. Allow the user to specify the ranking range he/she wants and output the names in that range, for example, if user enters ranking from 10 to 20, your program should display the names from Joseph to Donald Write two different functions for the above mentioned tasks, please design your functions parameters wisely.

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!