JPR Report Final
JPR Report Final
Certificate
This is to certify that Mr. Sayyed Abdul Mannan Roll no.
220447 of fourth semester of Diploma in Computer
Engineering of institute M.H. Saboo Siddik Polytechnic
(code: 0002) has completed microproject satisfactorily in
the subject: JPR (22412) for the academic year 2023-24 as
prescribed in the curriculum.
SEAL OF
INSTITUTE
MAHARASHTRA STATE
BOARD OF TECHNICAL EDUCATION
Certificate
This is to certify that Mr. Shaikh Tauheed Abdul Hameed Roll
no. 220457 of fourth semester of Diploma in Computer
Engineering of institute M.H. Saboo Siddik Polytechnic
(code:0002) has completed microproject satisfactorily in the
subject: JPR (22412) for the academic year 2023-24 as
prescribed in the curriculum.
SEAL OF
INSTITUTE
MAHARASHTRA STATE
BOARD OF TECHNICAL EDUCATION
Certificate
This is to certify that Mr. Yadav Deepak Ramdarash Roll
no. 220463 of fourth semester of Diploma in Computer
Engineering of institute M.H. Saboo Siddik Polytechnic
(code:0002) has completed microproject satisfactorily in the
subject: JPR (22412) for the academic year 2023-24 as
prescribed in the curriculum.
SEAL OF
INSTITUTE
Acknowledgment
We wish to express our profound gratitude to our guide Ms. Zaibunnisa Malik
Ma’am who guided us endlessly in the framing and completion of the micro
project. She guided us on all the main points in that micro project. We are
indebted to his/her constant encouragement, cooperation, and help. It was
his/her enthusiastic support that helped us in overcoming various obstacles in
the micro-project.
We are also thankful to our Principal, HOD, faculty members and classmates of
Computer Engineering department for extending their support and motivation in
the completion of this micro-project.
I. Aims/Benefits of microproject
The Crime Records Management System aims to streamline the
recording, storage, and access of crime-related data, enhancing
investigative capabilities and fostering collaboration among law
enforcement agencies. By centralizing information, it facilitates data
analysis, improves resource allocation, and enables proactive measures to
ensure public safety.
V. Resources required
Name of
Sr. no. Specifications Qty Remarks
resources
Learning resources and -
1. Online 3 sites
various websites
Microsoft word, Tools with -
2. Desktop 1 for each
internet facility.
Jdk19, Notepad, IntelliJ -
3. Software 1 for each
IDEA
Names of Team Members with Roll Nos.
Approved by:
Sign of Faculty:
2. Exceptions:
The Exception Handling in Java is one of the powerful mechanisms to handle the
runtime errors so that the normal flow of the application can be maintained. In our project
we have implemented it using try-catch block. Also, there are multiple methods throwing
an exception which are declared by throws keyword.
3. Object-oriented
4. Strings in Java
String is an immutable class in Java. String class includes many methods that can be
used but string remains immutable. Java String class provides a lot of methods to
perform operations on strings such as compare (), concat (), equals (), split (), length
(), replace (), compareTo (), intern (), substring () etc. We have also used some
methods of this string class.
Java’s stream based I/O is built upon four abstract classes: InputStream, OutputStream,
Reader and Writer. InputStream and OutputStream are designed for byte streams. The
InputStream is used to read data from a source and OutputStream is used to write data to
a destination. Reader and Writer are designed for character stream. One should use the
character stream classes when working with characters or strings, and use the byte stream
classes when working with bytes or other binary objects. We have used character stream
classes in our project for implementing I/O operations.
CODE:
/*USER-DEFINED PACKAGE FOR IO */
package ConsoleStream;
import java.io.*;
public class Console{
static DataInputStream jin = new DataInputStream(System.in);
public static void print(String arg)
{
System.out.print(arg);
}
public static void nprint(String arg)
{
System.out.print("\n"+arg);
}
public static int scanInt()throws IOException
{
return (Integer.parseInt(jin.readLine()));
}
public static String scanString()throws IOException
{
return (jin.readLine());
}
}
/*USER-DEFINED PACKAGE FOR FORMATTING*/
package Formats;
import ConsoleStream.Console;
}
}
/*MAIN PROGRAM*/
import java.io.*;
import ConsoleStream.Console;
import Formats.Format;
interface Display{
void display();
}
class LoginFailsException extends Exception{
LoginFailsException(){
Console.nprint("Incorrect Password | Failed to Log
In.....\n");
}
}
class BeginInterface{
static String adminId = "ADMIN##24";
//admin ID = ADMIN##24
BeginInterface(){
Format.head("CRIME RECORD MANAGEMENT SYSTEM");
Format.horizon(80,'-');
}
public static void login() throws IOException{
String admin="";
do{
try{
Console.nprint("Enter Admin ID\t:\t");
admin = Console.scanString();
if(admin.equals(adminId))
{
Console.print("Login SuccessFul...\n");
}
else{
throw new LoginFailsException();
}
}catch(LoginFailsException lfe){
}
}while(!adminId.equals(admin));
}
}
class Menu{
public static void show(){
Format.head("COMMAND MENU");
Format.horizon(80,'-');
Console.nprint("exit -- To Exit\t\t\taddc -- To Insert
Into Criminals\ndelc -- To Delete Record\tviewc -- To View Criminals
List");
}
}
case "addc":
add(c);
break;
case "delc":
//DELETE
if(CriminalRecord.n == 0){
Console.print("EMPTY RECORD");
break;
}
Console.print("Enter Criminal ID to delete\t: ");
id = Console.scanString();
common = 0;
for(CriminalRecord a : c){
if(common >= CriminalRecord.n)
{
Console.print("Record Not Found...");
break;
}
if(a.CId.equals(id)){
Console.print("Enter Admin Password to
confirm deletion\t: ");
pw = Console.scanString();
if(pw.equals(BeginInterface.adminId)){
for(int
i=common;i<CriminalRecord.n;i++){
c[i] = c[i+1];
}
CriminalRecord.n --;
Console.print("Criminal Id
"+id+" Deleted Successfully");
break;
}
else{
Console.print("Incorrect Password
:( ");
break;
}
}
common++;
}
break;
default:
if(!cmd.equals("exit"))
Console.print(cmd + " : Unrecognised
Command.....\n");
else
Console.print("System Closed….");
}
} while(!cmd.equals("exit"));
}
}
EXECUTION:
Adding another Record for C003:
VIII. Skills developed/ Learning outcomes
- Derive: Derive different possible solutions creatively.
- Data Collection: Collect relevant data from different sources (books/the internet/the
market/suppliers/experts and others through surveys/interviews)
- Designing- Designing microproject with minimum required resources and at low cost.
- Teamwork- Learning to work in team and boost individual confidence.
- Time management- Completion of microproject as scheduled.
- Technical writing- Preparing a report of proposed plan and report.
- Presentation and communication skills: Giving working model presentation of the
micro project.
- Confidence: Confidently, answer the questions asked about the project.
Name of Student: Sayyed Abdul Mannan Abdul Salam Enrollment no: 2200020319
Name of programme: Computer Engineering Semester: 4th
Course title: Java Programming Code: 22412
Title of microproject: Crime Record Management System
Course outcomes achieved:
a) Develop programs using Object oriented methodology in Java
b) Apply concept of inheritance for code reusability
c) Develop programs using multithreading
d) Implement exception handling