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
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 : 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 : Main Program
Implement a menudriven main program using a loop with a switchcase to allow the user
to:
Add a task
Search for tasks
Delete a task
Display all tasks
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
