Question: C++ (visual studio C++) please use a class to solve the problem. Detectives v2.2 Town of Huntington police department needs a program that will help

C++

(visual studio C++)

please use a class to solve the problem.

C++ (visual studio C++) please use a class to solve the problem.Detectives v2.2 Town of Huntington police department needs a program that will

Detectives v2.2 Town of Huntington police department needs a program that will help them assign new cases they receive to the right detectives of the department. Your application will use a data file to read the information on department Each detective has a name, specialty (Homicide, Fraud, Theft, Traffic or Gangs) and experience (the number of years in the department). Here are the features of the program 1- Add Detective [40] Allows user to add new detectives to the system. Program should ask for the name, specialty and the experience (number of years) of the detective and add to the list of detectives If there is a detective with the provided name already in the system, then inform the user that the department already has a detective with this name and do not add the detective. No detectives with the same name allowed!-) 2- Search Detective [50] Allows user to search for a detective based on specialty and experience User will enter the specialty (Homicide, Fraud, Theft, Traffic or Gangs) and the "minimum* experience (in years) required for the case. The program will output the name of the detective who has the given specialty and has more than or equal to the minimum years of experience required The chances are more than one detective may fit the criteria above. If more than one detective fits the criteria than the detective with the most experience should be chosen. Here is an example Welcome to Detective v2.2 1- Add a Detective Search a Detective eport xit at speacialty do you need? CHomicide, Fraud, Theft, Traffic or Gangs at is the minimum years of experience required? 1 raud tective Sarah is the perfect fit for the Job 3- Report Detectives by Department [40] This is a report that display each detective grouped by the specialty. For example, the report should display "Homicide" and then list all detectives with that specialty under it. then the report should display "Fraud" as title and list all detectives whose specialty is Fraud. Continue to do the same for Theft, Traffic and Gangs Make sure that you have a function that takes a specialty and couts the detectives that belongs to that specialty Then you can call this function 5 times, one for each specialty 0- Exit [10] Exit the program Other Tasks File input/output [30] Declaration of the class and the array that holds the list of detectives [30]

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!