Answered step by step
Verified Expert Solution
Link Copied!

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 pre-populated 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 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

Concepts of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

7th edition

978-1111825911, 1111825912, 978-1133684374, 1133684378, 978-111182591

More Books

Students also viewed these Databases questions