Question: Project 6 Working with strings and vectors Objective: Develop a simple program to manage a list of tasks. This system will allow the user to

Project 6
Working with strings and vectors
Objective:
Develop a simple program to manage a list of tasks. This system will allow the user to add, search,
delete, and display tasks.
Requirements:
Part 1: Task Management Functions
Add Task:
o Implement a function addTask that allows the user to input a task description,
which is then added to a vector of std::string.
Search Task:
o Implement a function searchTask that prompts the user for a task description and
searches the vector for tasks containing that string. Print all matching tasks.
Delete Task:
o Implement a function deleteTask that prompts the user for a task description,
searches the vector for that exact task, and removes it from the vector.
Display All Tasks:
o Implement a function displayTasks that prints out all tasks in the vector.
Part 2: Main Program
Implement a menu-driven main program using a loop with a switch-case to allow the user
to:
1. Add a task
2. Search for tasks
3. Delete a task
4. Display all tasks
5. Exit the program
Constraints:
o Ensure proper input validation and error handling.
o The menu should loop until the user decides to exit.

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 Programming Questions!