Starting out with Control Structures: Program challenges in C++ by Tony Gaddis This problem was adapted from questions 9 and 10 on page 661 Write a program that keeps track of a speakers’ bureau. The program should use a structure to store the following data about a speaker: Name, Telephone Number, Speaking Topic, Fee Required. The program should use a vector of structures. It should let the user enter data into the vector, change the contents of any element, and display all the data stored in the vector. The program should have a menu-driven user interface. Input Validation: When the data for a new speaker is entered, be sure the user enters data for all the fields. No negative amounts should be entered for a speaker’s fee. In addition: add a function to the program that allows the user to search for a speaker on a particular topic. It should accept a key word as an argument then search the vector for a structure with that key word in the Speaking Topic field. All structures that match should be displayed. If no structure matches, a message saying so should be displayed. Hint: use the .find() string function to search the Speaking Topic field.

In this programming problem, we are tasked with creating a program in C++ that manages a speakers’ bureau using control structures. The program should store information about each speaker, including their name, telephone number, speaking topic, and fee required. To accomplish this, we will use a structure to store this data and a vector of structures to store information about multiple speakers.

The program should have a menu-driven user interface that allows the user to perform various tasks, such as entering data into the vector, changing the contents of any element, and displaying all the data stored in the vector. This menu-driven approach provides an intuitive and user-friendly interface for interacting with the program.

However, before allowing the user to enter data for a new speaker, we need to validate the input. Specifically, we need to ensure that the user enters data for all fields and that no negative amounts are entered for a speaker’s fee. Input validation is crucial for maintaining the integrity of the program’s data and preventing errors or unexpected behavior.

Additionally, we are required to add a function to the program that allows the user to search for a speaker on a particular topic. This function should take a keyword as an argument and search the vector for a structure with that keyword in the Speaking Topic field. If there are any matches, the program should display all the structures that match the keyword. If no structure matches the keyword, a message indicating this should also be displayed.

To implement the search functionality, we can use the .find() string function to search the Speaking Topic field within each structure. This function will allow us to efficiently search for the keyword within the vector and retrieve the matching structures. By displaying the matching structures or indicating if no matches are found, the program provides a useful tool for finding speakers based on specific topics.

In summary, this programming problem requires the implementation of a program that manages a speakers’ bureau using control structures in C++. The program should store speaker information using a structure and a vector of structures. The program should also include a menu-driven user interface, input validation for adding new speakers, and a search function for finding speakers based on their speaking topic.

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Click Here to Make an Order Click Here to Hire a Writer