Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Database Management With Website Development Applications

Authors: Greg Riccardi

1st Edition

0201743876, 978-0201743876

More Books

Students also viewed these Databases questions

Question

3. Describe the strategic training and development process.

Answered: 1 week ago

Question

10. Microsoft Corporation

Answered: 1 week ago

Question

4. EMC Corporation

Answered: 1 week ago