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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started