Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Your Objective in this section is to create a Contact Card structure. The structure will be pre - populated with values and stored in an
Your Objective in this section is to create a Contact Card structure. The structure will be prepopulated with
values and stored in an array of structures.
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started