Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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. Create a new Visual C++ Win32 Console application and name it:

CIS022_S2017_Final your name

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

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

Datacasting How To Stream Databases Over The Internet

Authors: Jessica Keyes

1st Edition

007034678X, 978-0070346789

More Books

Students also viewed these Databases questions