Programming Langauge C++:
Assignment
Purpose Demonstrate the ability to create a Visual C++ console project in Microsoft Visual Studio.
Demonstrate the ability to create a class definition.
Demonstrate the ability to create an array of objects and manipulate the methods and members of the objects.
Instructions Using Microsoft Visual Studio create a C++ program that solves the following problem.
1. Read the problem.
Create a program that keeps track of up to 8 contacts. The user should be able to add and display entries by selecting which operation to perform from a menu.
The program should perform the following operations:
1. A menu should appear prompting the user to enter A to add an entry; P to print the entries; Q to quit.
The menu should repeat continuously until the user enters Q (upper or lower case).
2. When the user enters A, they should be prompted for the name and email address of a contact.
If 8 contacts are already being stored, display an error message and redisplay the menu.
Name and email address should be strings. Do not format either entry (any input should be acceptable).
After collecting and storing the name and email address redisplay the menu.
3. When the user enters P, all of the stored names and email addresses should display.
After the names and email addresses display, the menu should redisplay.
4. When the user enters something other than A, P, or Q, the menu should redisplay.
5. Create a class that holds the name and email address.
Create an array of 8 objects of the class type to hold the data.
The class should have a member that prompts for, and collects the name and email address.
The class should have a member that displays the name and email address.
2. Select a location where you can find it later.
Choose the default application settings.
3. Write the program.
Write code that solves the problem described in item 1.
The program should immediately terminate when Q is entered (do not pause)