Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Your Objective in this section is to create a c + + Contact Card structure. The structure will be pre - populated with values and

Your Objective in this section is to create a c++ Contact Card structure. The structure will be pre-populated with
values and stored in an array of structures, show a function prototype and uses namespace.
Instructions
Create a struct called "Contacts" with the following attributes: firstName, last:Name, and phoneNumber.
In your main, populate three elements of an array of structures called arrayContacts with data (first name,
last name, and phone number).
Create a void function called "printContacts" that will take the anray you created as a parameter and print
out the list of contacts you have pre-populated similar the the example output shown below.
In your menu, add option 8 to Print Contacts
When the user selects option 8, call the print Contacts function and print the list of contacts to the screen.
Challenge!
As an optional challenge, you can create a class rather than a structure. If you choose to complete
the class challenge, please make sure you have a header file as well as an implementation file along
with your main cpp file.
The output should be similar to:
Programming 1 Course ProjectPlease Enter your First Name: Kevin
Please Enter your Last Name: Roark
Welcome to my Course Project Kevin!
Enter Your Request: 8
Contact List:
Name: Kevin Roark
Phone: 210-837-0600
Name: Bart Simpson
Phone: 210-444-1234
Name: Sally Smith
Phone: 210-324-7895
image text in transcribed

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

SQL Server Query Performance Tuning

Authors: Sajal Dam, Grant Fritchey

4th Edition

1430267429, 9781430267423

More Books

Students also viewed these Databases questions

Question

Define span of management or define span of control ?

Answered: 1 week ago

Question

What is meant by formal organisation ?

Answered: 1 week ago

Question

What is meant by staff authority ?

Answered: 1 week ago

Question

Discuss the various types of policies ?

Answered: 1 week ago