/expert-chance-2924

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.

Primary LanguageJava

expert-chance-2924

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:

  1. Add crime details
  2. Update crime details
  3. Add criminal details
  4. Update criminal details
  5. Assign criminal to crime
  6. Remove criminal from crime
  7. Delete crime
  8. Delete criminal
  9. Exit

The Public menu includes the following options:

  1. View total crime for each Police Station area for a date range.
  2. View total crime for each crime type for a date range
  3. Search for criminal by name.
  4. Search for crime by description.
  5. 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.