The main objective of this system is to maintain and manage detailed information on the crime that happened in an area under a particular police station.
About the Project
This Project starts by asking the user to select the type of user: Admin or Public. If the user selects Admin, they are prompted to enter their username and password. If the credentials are correct, the Admin menu is displayed, and the user can perform various actions. If the user selects Public, they are presented with the Public menu, and they can view information based on their selection.
The Admin menu includes the following options:
- Add crime details
- Update crime details
- Add criminal details
- Update criminal details
- Assign criminal to crime
- Remove criminal from crime
- Delete crime
- Delete criminal
- Exit
The Public menu includes the following options:
- View total crime for each Police Station area for a date range.
- View total crime for each crime type for a date range
- Search for criminal by name.
- Search for crime by description.
- Exit
The code defines two classes: Crime and Criminal. These classes have attributes that store the details of crimes and criminals respectively. The code also defines several methods for adding, updating, deleting, and searching for crimes and criminals. These methods are called from the Admin and Public menu options.