0% found this document useful (0 votes)
393 views39 pages

Fir Police Management Mini Project

fir

Uploaded by

renukasemwal403
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
393 views39 pages

Fir Police Management Mini Project

fir

Uploaded by

renukasemwal403
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 39

Project Report

On

“FIR Police management system”

Bachelor of Science (Information Technology)


Department of Computer Application
Uttaranchal School of Computing Sciences
Session (2022-2023)

Under of Supervision of: Submitted by:


Mr.Praveen shah Renuka Semwal
(Assistant Professor) Enroll No:-
UU2210000039
BS.c (IT)-II
ACKNOWLEDGEMENT

The accomplishment of this project would have not been possible individually without the
encouragement, assistance and valuable support from various sources. Thus my whole
hearted thanks to “Almighty”. Knowledge and co-operation are essential for success in any
project field.

No creative work is possible in isolation. I need guidance, motivation at every step of my


progress. I would like to add a few heartful words for the people who were the part of this
project in numerous ways.

Primarily, we would like to thanks Professor Dr. Sonal Sharma, Dean Uttaranchal School
of Computing Sciences for providing a healthy and encouraging environment to study.

We profusely thankful to the department of computer science and applications, and our guide
project Coordinator Mr. Praveen Shah for inspiring me to deliver the best in this project.
She always had been very helpful whenever I needed any guidance from her.

In the end I would like to thanks my parents who help me directly or indirectly in the
completion of this project.

R
enuka Semwal
BSc.IT
2nd Semester
DECLARATION

I hereby declare that the project report entitled “FIR Police management system” Submitted
by Renuka to Uttaranchal School of Computer Science. The project was done under the
guidance of Mr. Praveen shah I further declare that the work reported in this project has not
been submitted and will not be submitted either in part of or in full , for the award of any
other degree or diploma in his university or any other university or institute .

Renuka Semwal
BSc.IT
2nd Semester
CERTIFICATE OF ORIGINALITY

This is certify that Renuka student of BSC.IT 2 snd semester at Uttranchal School of Computer
Sciences, Dehradun has completed project Titled “Titled “FIR Police management system”
using ‘c ++’ programming language in Turbo c++ for the batch (2022-2025).

Mr.Praveen Singh
Assistant professor
1

TABLE OF CONTENTS
S. No Content Page No.

Acknowledgment I

Declaration II
Certificate of Originality III
Table of Content 0.0.

1. Introduction 1-3
5.1 Objective of the Project
5.2 Scope of the project

2. System Analysis /Requirement 4-6


2.1 Existing System
2.2 Proposed System

3. System Design 5-6


3.1 Hardware &Software used
3.2 Flowchart

4. Conclusion 7
4.1 Future Scope of the project

5. Appendices 8-33
5.1 coding
5.2 coding output
6. Bibliography 34
INTRODUCTION

FIR management is a system that provide storage, manipulating, extraction of records


and to view information. This system is based on a concept to maintain all the fir
records of a police station. From this system, the user can easily add each every
convict’s detail such as convict’s id, name, age, gender, height, weight, crime, face
details, conviction etc. Apart from this, the user can view/check a list of the records,
search, modify and remove records too. Login system is also available in the system
to make it more secure. Before removing a record , the user has the password again
for the access which works as a verification. There’s no chance of data misuse or loss
& it’s not time-consuming.
The whole project is developed in ‘c++’ programming language, different variables
and strings have been used for the development of this project. It’s easy to operate and
understand by users.
OBJECTIVE OF THE PROJECT

 To store provide information of crime managements.


 To reduce time consuming to complete crime investigation
 To make detector auto gain information.
SCOPE OF THE PROJECT

 To provide maximum services to the user


 This system provides proper security and reduces the manual work of the file based
system.
 Anyone can report crime to the officers administrators.
 Generate various other reports required from time to time.
SYSTEM ANALYSIS

 EXISTING SYSTEM

In the existing Fir police management system, most of the operations are done
manually like send complaints ,taking actions against crimes, view status etc.

 This system need more man power to track the records of crimes.
 The existing system doesn’t have system security.
 The existing system is time consuming and not very user friendly.

 PROPOSED SYSTEM

 The aim of proposed system is to develop a system of improved facilities.


 The proposed system can overcome all the limitations of the existing system.
 The system provide proper security and reduces the manual work.
 The proposed system tries to eliminate or reduce these difficulties up to some extent.
 The proposed system will help the user to reduce the workload and mental conflict.
SYSTEM DESIGN

Basic Modules:

 Add Complaint: This module help user report online complaints.


 Edit Complaint: This module help the user to edit his complaint details.
 View Complaint: This module allows us to view the status of all complaint that you
have postd early.

HARDWARE & SOFTWARE USED


Processor AMD RYZEN 3
Ram 8 GB
SDD 512GB
OS Window11

PROGRAMING LANGUAGE AND PLATEFORM USED:

C++ Programming Language

Dev C++, Version: 5.11


FLOW CHART:
CONCLUSION AND FUTURE SCOPE
 It is necessary that FIR must be recorded in all circumstances especially where the
person has arrived in the police station to lodge an FIR against a particular crime
 In future system will allow user to register complains online.
 By the future technology user can view the case details and progress of the complaints
on their mobile phones.
 User can view the progress of their complaint online.
 The method of video conferencing can be added to make the project livelier.
APENDICES
CODING
#include <iostream>

#include <stdlib.h>

#include <string>

#include <cctype>

#include <fstream>

using namespace std;

class complaint

public:

void customer_StoreComplaint();

void admin_menu();

void create_complaint();

void cancel_complaint();

void update_complaint ();

void print_complaint();

void view_complaint();

void exit();

complaint();

};

complaint::complaint ()

struct node
{

int complaint_number;

string customerName;

string date;

string x;

node *prev;

node *next;

node *link;

}*q, *temp;

node *start_ptr = NULL;

node *head = NULL;

node *last = NULL;

int main()

complaint admin;

int option;

do

cout<<"\n";

cout<<"
================================================\n";

cout<<"| Police FIR Management System |\n";

cout<<"
================================================\n\n\n";
cout<<"-------------------------------------------------\n";

cout<<"|\t1. Customer \t\t\t\t|\n";

cout<<"-------------------------------------------------\n";

cout<<"-------------------------------------------------\n";

cout<<"|\t2. Administrator \t\t\t|\n";

cout<<"-------------------------------------------------\n";

cout<<"-------------------------------------------------\n";

cout<<"|\t3. EXIT \t\t\t\t|\n";

cout<<"-------------------------------------------------\n\n";

cout<<"Input an option: ";

cin>>option;

switch(option)

case 1:

admin.customer_StoreComplaint();

break;

case 2:

admin.admin_menu();

break;

case 3:

admin.exit();

goto a;

break;

}
}while(option!=3);

a:

cout<<"thank you"<<endl;

system ("PAUSE");

void complaint::customer_StoreComplaint()

system("cls");

cout<<"\n";

cout<<"
================================================\n";

cout<<"| Police FIR Management System |\n";

cout<< "
================================================\n\n\n";

cout <<"\nAdd Your Complaint Details\n";

cout <<"________________________________\n\n";

node *temp;

temp = new node;

cout << "Type Complaint no: ";

cin >> temp->complaint_number;

cout<< "Enter Your Name: ";

cin.ignore();

getline(cin, temp->customerName);

cout<<"Enter Date : ";


cin>>temp->date;

cout << "Complaint Description:";

cout<<"( 1000 words maximum ) \n";

cin.ignore();

getline(cin, temp->x);

cout<<"===========================================================
================"<<endl;

cout << "Complaint added Successfully"<<endl;

cout<<"===========================================================
================"<<endl;

system ("PAUSE");

temp->next=NULL;

if(start_ptr!=NULL)

temp->next=start_ptr;

start_ptr=temp;

system("cls");

void complaint::admin_menu()

complaint admin;
int menu;

string userName, userPassword;

system("cls");

cout<<"\n";

cout<<"
===================================================\n";

cout<<"| Police FIR Management System |\n";

cout<<" ===================================================\n\n\
n";

cout<<" ---------------------------------------------------\n";

cout<<"| Administrator / Staff Login |\n";

cout<<" ---------------------------------------------------\n\n";

cout << "\nPlease enter your username: ";

cin >> userName;

cout << "\nPlease enter your user password: ";

cin >> userPassword;

if (userName == "admin" && userPassword == "admin")

do

system("cls");

cout<<"\n";

cout<<"
===================================================\n";
cout<<"| Police Fir Management System |\n";

cout<<"
===================================================\n\n\n";

cout<<"--------------------------------------------------\n";

cout<<"||\t1. Create a Complaint \t\t\t ||\n";

cout<<"||\t2. View Complaint\t\t\t ||\n";

cout<<"||\t3. Update Complaint Status \t\t ||\n";

cout<<"||\t4. Print the complaint \t\t\t ||\n";

cout<<"||\t5. Cancel a Complaint \t\t\t ||\n";

cout<<"||\t6. Logout\t\t\t\t ||\n";

cout<<"--------------------------------------------------\n";

cout<<"Enter choice: ";

cin>>menu;

switch (menu)

case 1:

admin.create_complaint();

break;

case 2:

admin.view_complaint();

system("PAUSE");

break;
}

case 3:

admin.update_complaint();

system("PAUSE");

break;

case 4:

admin.print_complaint();

system("PAUSE");

break;

case 5:

admin.cancel_complaint();

system("PAUSE");

break;

case 6:

cout<<"You are Logged Out...!\n\n\n\n";

system ("PAUSE");

admin.admin_menu();
break;

}//end Switch

}while(menu!=6);//end do

cout<<"thank you"<<endl;

system ("PAUSE");

else

cout << "\n\n\t\tInvalid login attempt. Please try again.\n" << '\n';

system("PAUSE");

system ("cls");

admin.admin_menu();

void complaint::create_complaint()

system("cls");

cout<<"\n";

cout<<"\t\t
================================================\n";

cout<<"\t\t| Police FIR Management System |\n";


cout<<"\t\t
================================================\n\n\n";

cout <<"\nAdd Complaint Details of Customer\n";

cout <<"_____________________________________ \n\n";

node *temp;

temp = new node;

cout << "Type Complaint no: ";

cin >> temp->complaint_number;

cout<< "Enter Customer Name: ";

cin.ignore();

getline(cin, temp->customerName);

cout<<"Enter Date : ";

cin>>temp->date;

cout << "Complaint Description:";

cout<<"( 1000 words maximum ) \n";

cin.ignore();

getline(cin, temp->x);

cout<<"===========================================================
================"<<endl;

cout << "Complaint added Successfully"<<endl;

cout<<"===========================================================
================"<<endl;
cout << "Go to Print Complaint to print the Complaint"<<endl;

cout<<"===========================================================
================"<<endl;

system ("PAUSE");

temp->next=NULL;

if(start_ptr!=NULL)

temp->next=start_ptr;

start_ptr=temp;

system("cls");

void complaint::view_complaint()

string userName, userPassword;

int num;

bool found; //variable to search

system("cls");

node *temp;

temp=start_ptr;

found = false;

cout<<"\nPlease enter the username: cin>>userName;

cout<<"\nPlease enter userPassword: ";


cin>>userPassword;

system("cls");

cout<<"\n";

cout<<"
================================================\n";

cout<<"| Police FIR Management System |\n";

cout<<"
================================================\n\n\n";

cout<<" Enter the Complaint Number To Look into The Complaint


Details\n";

cin>>num;

cout<<"\n";

cout<<"---------------------------------------------------------------------------"<<endl;

cout <<"\t\tHere is the Complaint list\n";

cout<<"---------------------------------------------------------------------------"<<endl;

if(temp == NULL)

cout << "\tThere is no Complaint to show\n\t\t\tSo The List is


Empty\n\n\n";

while(temp !=NULL && !found)

if (temp->complaint_number==num)

{
found = true;

else

temp = temp -> next;

if (found)

cout <<"Complaint Number : "<<temp->complaint_number;

cout <<"\n";

cout<<"Person Name: "<<temp->customerName<<endl;

cout<<"Complain Date : "<<temp->date<<endl;

cout<<"____________________________________________________________________
_________"<<endl;

cout<<"-------------------------"<<endl;

cout<<"|Complaint description: |"<<endl;

cout<<"-------------------------"<<endl;

cout<<temp->x;

cout <<"\n";

cout<<"____________________________________________________________________
_________"<<endl;

}
}

void complaint::cancel_complaint()

string userName, userPassword;

system("cls");

int num, count;

cout<<"\n";

cout<<"\nPlease enter your username: ";

cin>>userName;

cout<<"\nPlease enter your userpassword: ";

cin>>userPassword;

system("cls");

cout<<"\n";

cout<<"\t\t
================================================\n";

cout<<"\t\t| Police FIR Management System |\n";

cout<<"\t\t
================================================\n\n\n";

cout<<"Enter the Complaint number you want to delete \n";

cin>>num;

node *q;

node *temp;

bool found;

if(start_ptr == NULL)
cerr<<"Can not cancel from an empty list.\n";

else

if(start_ptr->complaint_number == num)

q = start_ptr;

start_ptr = start_ptr->next;

count--;

if(start_ptr == NULL)

last = NULL;

delete q;

cout<<"The Complaint is Cancelled Successfully"<<endl;

else

found = false;

temp = start_ptr;

q = start_ptr->next;

while((!found) && (q != NULL))

if(q->complaint_number != num)

temp = q;
q = q-> next;

else

found = true;

if(found)

temp->next = q->next;

count--;

if(last == q)

last = temp;

delete q;

cout<<"The Complaint is Cancelled


Successfully"<<endl;

else

cout<<"Complaint to be Cancelled is not in the


list."<<endl;

} //End function

void complaint::update_complaint()

{
string userName, userPassword;

system("cls");

int sid;

bool found;

found = false;

temp = start_ptr;

cout<<"\n";

cout<<"\nPlease enter your username: ";

cin>>userName;

cout<<"\nPlease enter your userpassword: ";

cin>>userPassword;

system("cls");

cout<<"\n";

cout<<" ================================================\n";

cout<<"| Police FIR Management System |\n";

cout<<" ================================================\n\n\n";

cout<<"Enter Complaint Number To Update: ";

cin>>sid;

if (temp==NULL && sid==0)

cout<<"No Complaint To Update..!"<<endl;

else
{

while(temp !=NULL && !found)

if (temp->complaint_number==sid)

found = true;

else

temp = temp -> next;

if (found)

cout << "Change Complaint Number: ";

cin >> temp->complaint_number;

cout<< "Change Customer Name: ";

cin.ignore();

getline(cin, temp->customerName);

cout<<"Change Date : ";

cin>>temp->date;

cout << "Complaint Description:"<< endl;

cout<<"( 1000 words maximum ) \n";

cout << " " ;

cin.ignore();
getline(cin, temp->x);

system("PAUSE");

temp = temp->next;

cout<<"COMPLAINT RECORD UPDATED....!\n\n"<<endl;

if(temp != NULL && temp->complaint_number != sid)

cout<<"Invalid Complaint Number...!\n\n"<<endl;

void complaint::print_complaint()

string userName, userPassword;

int num;

bool found;

system("cls");

ofstream outputFile;

outputFile.open("prototype.txt");
node *temp;

temp=start_ptr;

found = false;

cout<<"\n";

cout<<"\nPlease enter your username: ";

cin>>userName;

cout<<"\nPlease enter your userpassword: ";

cin>>userPassword;

system("cls");

cout<<"\n";

cout<<"
================================================\n";

cout<<"| Police FIR Management System |\n";

cout<<"
================================================\n\n\n";

outputFile<<"\n";

outputFile<<"
================================================\n";

outputFile<<"| Police FIR Management System |\n";

outputFile<<"
================================================\n\n\n";

cout<<" Enter the Complaint Number To Print The Complaint


Details\n";

cin>>num;

cout<<"\n";

cout<<"--------------------------------------------------------"<<endl;
cout <<" Here is the Complaint list\n";

cout<<"--------------------------------------------------------"<<endl

if(temp == NULL)

cout << "There is no Complaint to show\nSo The List is Empty\n\


n\n";

while(temp !=NULL && !found)

if (temp->complaint_number==num)

found = true;

else

temp = temp -> next;

if (found)

cout <<"Complaint Number : "<<temp->complaint_number;

outputFile << "Complaint Number : "<<temp-


>complaint_number << endl;

cout <<"\n";
cout<<"Person Name: "<<temp-
>customerName<<endl;

outputFile << "Person Name: "<<temp-


>customerName<<endl;

cout<<"Order Date : "<<temp->date<<endl;

outputFile << "Order Date : "<<temp->date<<endl;

cout<<"____________________________________________________________________
________"<<endl;

outputFile <<
"__________________________________________________________________________
__"<<endl;

cout<<"Complaint description: "<<endl;

outputFile << "Complaint description: "<<endl;

cout<<"----------------------"<<endl;

outputFile<<"------------------------------------------------------------------------------"<<endl;

cout<< temp->x;

outputFile << temp->x<<endl;

cout <<"\n";

cout<<"____________________________________________________________________
________"<<endl;
outputFile <<
"__________________________________________________________________________
__"<<endl;

temp=temp->next;

outputFile.close();

cout << "Complaint Printed Succesfully....!\n";

void complaint::exit()

cout<<"\nYou choose to exit.\n"<<endl;

}
Coding Output :
BIBLIOGRAPHY

Al-Bukhari,l (2008).Multilevel GIS-Based Data Management Model for Building


Maintenance and repair Data . Master of Applied Science in civil Engineering.

Ali Ramli(2011, April 27) e-Complaint Service of MPJBT Complaint Unit .

Baggini.j,(2008),Complaint: from Minor Moans to principled Protest .Great Britain Londan:


Profile books LTD.

You might also like