0% found this document useful (0 votes)
31 views20 pages

JPR Report Final

Java Programming Microproject Report (22412)

Uploaded by

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

JPR Report Final

Java Programming Microproject Report (22412)

Uploaded by

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

Anjuman-I-Islam

M.H. Saboo Siddik Polytechnic

Java programming (jpr)


Microproject
Computer Engineering
Department
Co-4i
Title: Crime Record management System
Year: 2023-24
PREPARED BY:
 220447 – Sayyed Abdul Mannan
 220457 – Shaikh Tauheed Abdul Hameed
 220463 – Deepak Ramdarash Yadav

Under the guidance of: Ms. Zaibunnisa Malik


MAHARASHTRA STATE
BOARD OF TECHNICAL EDUCATION

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.

Place: Byculla, Mumbai Enrolment no: 2200020319


Date: ______________ Exam seat no:

Signature Signature Signature


Project guide H. O. D Principal

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.

Place: Byculla, Mumbai Enrolment no: 2200020360


Date: ______________ Exam seat no:

Signature Signature Signature


Project guide H. O. D Principal

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.

Place: Byculla, Mumbai Enrolment no: 2200020343


Date: ______________ Exam seat no:

Signature Signature Signature


Project guide H. O. D Principal

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.

Names of Team Members with Roll Nos.

1. Sayyed Abdul Mannan 220447

2. Shaikh Tauheed Abdul Hameed 220457


3. Deepak Ramdarash Yadav 220463
Annexure-I
Microproject Proposal
Title of Micro-Project: Crime Records Management System

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.

II. Course outcomes addressed


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
e) Develop programs using applets and graphics
f) Develop programs for handling I/O and file streams.

III. Proposed methodology


 To search the information about the project. (Collect relevant data from
different sources i.e. books/internet and others through surveys/interviews
etc.).
 To collect all relevant content / materials to complete the project.
 To prepare the report of micro project.
 To prepare presentation.
 To deliver presentation/ appear for viva-voice
 Discussion of the given topic among group members.
 Literature survey
 Submission of project proposal
 Analysis of data
 Work divided among group members
 Compilation of content
 Representation
 Editing the content as per the instructions
 Report Preparation
 Viva and presentation
Annexure-I
IV. Action Plan
Name of
Planned Planned
Weeks Details of activity responsible
start date finish date
team members
Discussions & finalization of topics 14/03/2024 16/03/2024 All Team
1& 2
Members
3 Preparation of abstract 16/03/2024 18/03/2024 Deepak Yadav
4 Literature review 18/03/2024 19/03/2024 Tauheed Shaikh
Submission of microproject proposal (Annexure 20/03/2024 20/03/2024 All Team
5
-I) Members
Collection of information on given topic 21/03/2024 23/03/2024 Tauheed Shaikh,
6
Abdul Mannan
7 Collection of all relevant contents 24/03/2024 26/03/2024 Abdul Mannan
Discussion and submission of outline of the 26/03/2024 27/03/2024 All Team
8
project Members
Analysis/execution of collected data/information 28/03/2024 29/03/2024 Tauheed Shaikh,
and Preparation of Abdul Mannan,
9
prototypes/drawings/charts/graphs/ Deepak Yadav
tables/models/circuits/programs etc.
10 Compilation of contents of project 30/03/2024 30/03/2024 Abdul Mannan
11 Compilation of weekly progress report 31/03/2024 31/03/2024 Tauheed Shaikh
12 Preparation of the project report (Annexure II) 25/03/2024 31/03/2024 Deepak Yadav
13 Viva Voce / Delivery of presentation. 04/04/2024 04/04/2024 All Team
Members

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.

1. Sayyed Abdul Mannan 220447


2. Shaikh Tauheed Abdul Hameed 220457
3. Deepak Ramdarash Yadav 220463

Approved by:
Sign of Faculty:

Name of faculty: Ms. Zaibunnisa Malik


Annexure-II
Microproject Report
Title of Micro-Project: Crime Records Management System
I. Rationale
The Crime Records Management System aims to streamline crime data handling in
law enforcement. By digitizing records and centralizing information, it enhances
investigative capabilities, collaboration, and public safety measures. Additionally, it
supports compliance and transparency, serving as a vital tool in modernizing crime
management practices.

II. Aims/Benefits of microproject


The Crime Records Management System seeks to enhance efficiency in handling
crime-related data by digitizing and centralizing records, leading to improved
investigative capabilities and collaboration among law enforcement agencies. This
system aims to provide timely access to critical information, aiding in proactive
measures to ensure public safety. Moreover, it promotes compliance, transparency,
and accountability, ultimately modernizing crime management practices and
optimizing resource utilization within law enforcement operations.

III. 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

IV. Literature review


While preparing this microproject we have learnt about the working of online voting
system. Concepts of OOP in java, exception, awt and file handling was learnt in detail.
1. AWT:

Java AWT (Abstract Window Toolkit) is an API to develop Graphical User


Interface (GUI) or windows-based applications in Java. Java AWT components are
platform-dependent i.e. components are displayed according to the view of
operating system. AWT is heavy weight i.e. its components are using the resources
of underlying operating system (OS).

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

Object-Oriented Programming is a paradigm that provides many concepts, such


as inheritance, data binding, polymorphism, etc. In our project it is implemented as we
have created multiple classes and their objects are created in main. Also run time
polymorphism is implemented as few methods are overloaded. Constructors are created,
static method is used and also this keyword is used.

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.

5. File Handling in Java

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.

V. Actual Methodology Followed


We were assigned with the microproject topic and time was assigned to us to complete
the project in 11 weeks. All team members worked together in these 11 weeks together
in order to complete this microproject. Data was collected according to our topic.
Presentation was prepared, technical report was prepared and then we prepared
ourselves to deliver the presentation.

VI. Actual resources used


Name of
Sr. no. Specifications Qty Remarks
resources
Visual Studio Code, -
1. Software 1 for each
Command Prompt
www.geeksforgeeks.com, -
Websites www.tutorialspoint.com, 1 for each
2.
www.github.com

VII. Outputs of Microprojects

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;

public class Format{


public static String tab(int reserved_space,int len){
String s = "";
for(int i=reserved_space; i>len ;i--)
{
s += " ";
}
s += "|";
return s;
}
public static void horizon(int len,char c)
{
for(int i = 0;i<len;i++)
{
Console.print(c+"");
}
}
public static void CriminalRecordHeader()
{
horizon(20+20+5+15+15+20 , '*');
Console.nprint("\t\t\t\tCRIMINAL RECORD\n");
horizon(20+20+5+15+15+15 , '*');
Console.nprint("ID" + tab(20,2) + "Name" + tab(20,4) +
"Age" + tab(5,3) + "Nationality" + tab(15,11) + "Crime" + tab(15,5)
+ "Sentence");
Console.nprint("");
horizon(20+20+5+15+15+20,'-');
}
public static void head(String arg)
{
int space = 40 - (arg.length()/2);
Console.print("\n");
while(space>0){
Console.print(" ");
space--;
}
Console.print(arg);
Console.print("\n");

}
}

/*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");
}
}

class CriminalRecord implements Display{


static int n=0;
String CId;
String CName;
int age;
String Nationality;
String Crime;
String Sentence;

/* CriminalRecord(String id,String n,int age,String nation,String


cr, String sent)
{
CId = id;
CName = n;
this.age = age;
Nationality = nation;
Crime = cr;
Sentence = sent;
} */

public void display()


{
String tab1 = Format.tab(20, CId.length());
String tab2 = Format.tab(20, CName.length());
String tab3 = Format.tab(5, 2);
String tab4 = Format.tab(15, Nationality.length());
String tab5 = Format.tab(15, Crime.length());
Console.nprint(CId + tab1 + CName + tab2 + age + tab3 +
Nationality + tab4 + Crime + tab5 + Sentence);
Console.nprint("");
Format.horizon(20+20+5+15+15+20, '-');
}

public void input()throws IOException{


Console.print("Enter Criminal ID\t:\t");
CId = Console.scanString();
Console.print("Criminal Name\t:\t");
CName = Console.scanString();
Console.print("Criminal Age\t:\t");
age = Console.scanInt();
Console.print("Nationality\t:\t");
Nationality = Console.scanString();
Console.print("Crime\t\t:\t");
Crime = Console.scanString();
Console.print("Sentence\t:\t");
Sentence = Console.scanString();
n++;
Console.print(n + "th Record Added Successfully...");
}
}
/* ---------------MAIN CLASS AND METHOD HERE------------------------
----------------------------------- */
class CrimeRecordMain{
static void add(CriminalRecord cr[])throws IOException{
cr[CriminalRecord.n] = new CriminalRecord();
cr[CriminalRecord.n].input();
}
public static void main(String[] args) throws IOException
{
String cmd, id,pw;
int common;
CriminalRecord[] c = new CriminalRecord[100];
new BeginInterface();
BeginInterface.login();
Menu.show();
do{
Console.nprint("Enter command\t:\t");
cmd = Console.scanString();
switch(cmd){
case "viewc":
//VIEW
if(CriminalRecord.n == 0){
Console.print("EMPTY RECORD....");
}
else{
Format.CriminalRecordHeader();
common = 0;
for(CriminalRecord a : c){
if(common < CriminalRecord.n)
{
a.display();
common++;
}
else
break;
}
}
break;

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.

IX. Applications of this microproject


1. Law Enforcement: Vital tool for police departments to manage and access crime
data, enhancing investigative processes.
2. Government Institutions: Supports evidence-based policy formulation by
analysing crime trends and allocating resources effectively for crime prevention.
3. Judicial System: Provides accurate crime data for court proceedings, aiding in
prosecutions and ensuring fair trials.
4. Community Engagement: Facilitates transparency and citizen participation in
crime prevention efforts through initiatives like neighbourhood watch programs
and crime mapping.
Micro Project Evaluation Sheet

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

Comments/Suggestions about teamwork/leadership/interpersonal communication


___________________________________________________________________________
___________________________________________________________________________

Name and designation of teacher: _____________________________________________


Dated signature: ______________________
Micro Project Evaluation Sheet

Name of student: Shaikh Tauheed Abdul Hameed Enrollment no: 2200020360


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

Comments/Suggestions about teamwork/leadership/interpersonal communication


___________________________________________________________________________
___________________________________________________________________________

Name and designation of teacher: _____________________________________________


Dated signature: ______________________
Micro Project Evaluation Sheet

Name of student: Yadav Deepak Ramdarash Enrollment no: 2200020343


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

Comments/Suggestions about teamwork/leadership/interpersonal communication


___________________________________________________________________________
___________________________________________________________________________

Name and designation of teacher: _____________________________________________


Dated signature: ______________________

You might also like