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.
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more