Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Language: C++ Write a program which creates a collection of names and birthday dates. Your program should read the data from a file called data.txt

Language: C++ Write a program which creates a collection of names and birthday dates. Your program should read the data from a file called data.txt which contains a name followed by a corresponding birthday date on different lines repeated for many persons. A name consists of first name and last name separated by space. Your program should read the content of the file and use a map to store names and birthday dates. Then simulate querying your collection (i.e., the map) by asking for a name from the keyboard and printing on the standard output the corresponding birthday date. If the name is not in your container then print Name not found! on the screen. You can assume that the input will be valid and the content of the file will be valid if existing

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 Systems A Practical Approach To Design Implementation And Management

Authors: THOMAS CONNOLLY

6th Edition

9353438918, 978-9353438913

More Books

Students also viewed these Databases questions

Question

Find f(x) and f(c). Function f(x) x - 4 x + 4 Value of c c=3

Answered: 1 week ago

Question

Consider this article:...

Answered: 1 week ago