Question: C++ program Functional Requirements: Create a menu-driven program that offers the user a chance to create, search, and display a list of dog names: Dog

C++ program Functional Requirements: Create a menu-driven program that offers the user a chance to create, search, and display a list of dog names: Dog Name Organizer

1. Add one dog name to the end of the list

2. Search for a dog name within the list

3. Display the list

4.End the program

Menu Option 1: All dog names must be at least one character in length. Allow no more than 20 names to be added to the list in any given run of the program. Don't allow the program to crash - keep a counter.

Menu Option 2: Input a dog name to search for. Use a linear search to determine if that dog is present. If the dog is present then tell WHERE it is found (ie, what position number). If not, then tell the user that too. For example: The dog JONAS was found at position 2. or The dog JONAS was not found.

Menu Option 3: Display the names vertically, one per line.

Programming Rules: You must use an array of strings to hold the list of names. That array must be declared in main() and then passed around to the various functions. Don't forget to include the string library (#include ) up at the top of your program. Remember if you are using getline to read your strings and cin to read your menu numbers then you will have a problem. Make sure to review past announcements about how to deal with that issue. Your code must be divided into logical functions - main can have a while loop and a case statement but should not, for example, have the code that displays the list, etc. No global variables. All good programming practices should be in place. ---------- Submit to me: 1. .cpp file 2. pdf of the pseudocode

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!