Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Relational Database Technology

Authors: Suad Alagic

1st Edition

354096276X, 978-3540962762

More Books

Students also viewed these Databases questions

Question

Understand how to design effective service guarantees.

Answered: 1 week ago

Question

Know when firms should not offer service guarantees.

Answered: 1 week ago