Question: 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 prepopulated 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 prepopulated similar the the example output shown below.
In your menu, add option to Print Contacts
When the user selects option 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 Course ProjectPlease Enter your First Name: Kevin
Please Enter your Last Name: Roark
Welcome to my Course Project Kevin!
Enter Your Request:
Contact List:
Name: Kevin Roark
Phone:
Name: Bart Simpson
Phone:
Name: Sally Smith
Phone:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
