Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

must be done in linux Write a c++ driver program that does the following: 1. Create a partially filled array of Contacts with capacity equal

must be done in linux

Write a c++ driver program that does the following:

1. Create a partially filled array of Contacts with capacity equal to 10. 2. Ask the user to input up to 10 Contacts (It may be less. The user should have the ability to stop inputting Contacts whenever he wishes). 3. Create a Menu in your main program with 3 options: search, display all, and exit. a) Provide a function in your main program that will be able to search for a particular Contact in your array of Contacts. Search must be based on the name. The function would return an index. You can call this function in your main program if the user selects option search from the menu to output information about this Contact in your main program.

b) Provide a function in your main program that will allow you to print ALL Contacts in the array. Call this function if the user selects display all option from the menu.

c) Exit the program if the user selects exit option from the menu.

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_2

Step: 3

blur-text-image_3

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

Beginning ASP.NET 4.5 Databases

Authors: Sandeep Chanda, Damien Foggon

3rd Edition

1430243805, 978-1430243809

More Books

Students also viewed these Databases questions