Write compile and run a program
Write, compile and run a program that works some of the functionality provided by the C++map container. Read data from a file into your map and produce various outcomes listed below via various user-defined methods. Use a menu for user friendliness.
The file spec includes for each record a last name followed by a first name for each names.
Each row value will thus serve as a key value pair for our map where the map key will be unique being the person last name and the first name will be the value for the map (wMap).
Take your names.txt file accompanying this lab and place it into your root folder along with the source provided in word document.
Include a menu to allow for the following
1. Search Person for first name (i.e., by key)
2. Remove Person (i.e., by key)
3. Update Person (i.e., to change value by key)
4. Get Person count
5. Print all People(First name first, Last name second)
6. Exit application (display message such as “Good bye/stay safe”)
Include appropriate methods that will be triggered by each menu selection by the user. Example follows for a Search routine.