0% found this document useful (0 votes)
44 views25 pages

Samplemicroproject JPR

The document is a micro project report on the 'Student Database System' submitted by three students under the guidance of Prof. Palwe P.D. at S.S.M. Adsul Polytechnic College for the academic year 2024-25. It includes sections on the project aim, course outcomes, proposed methodology, action plan, resources required, and a detailed introduction to Advanced Java Programming (AJP), along with source code for a student registration form. The report outlines the structure and functionality of the project, emphasizing the use of Java for developing a database application.

Uploaded by

omsaraikar27
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)
44 views25 pages

Samplemicroproject JPR

The document is a micro project report on the 'Student Database System' submitted by three students under the guidance of Prof. Palwe P.D. at S.S.M. Adsul Polytechnic College for the academic year 2024-25. It includes sections on the project aim, course outcomes, proposed methodology, action plan, resources required, and a detailed introduction to Advanced Java Programming (AJP), along with source code for a student registration form. The report outlines the structure and functionality of the project, emphasizing the use of Java for developing a database application.

Uploaded by

omsaraikar27
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/ 25

A

MICRO PROJECT REPORT ON


“ STUDENT DATABASE SYSTEM ”

Program & Program code : CO-5-I


Course : Advanced Java Programming
Course code : 22517

Submitted by,
Name of student Enrollment no Program

1. ANDHALE SNEHA RAJENDRA 2214640060 CO-5-I

2. BERAD ASMITA ANIL 2214640065 CO-5-I

3. RAMNANI DIVYA SUSHILKUMAR 2214640067 CO-5-I

Under the Guidance of

Prof. Palwe P.D.


In partial fulfillment of requirement for the award of
Diploma in Computer Engineering

MSBTE, Mumbai.

Academic Year: 2024-25

DEPARTMENT OF COMPUTER ENGINEERING


S.S.M. ADSUL POLYTECHNIC COLLEGE,

CHAS, AHMEDNAGAR -414 005(M.S)


DEPARTMENT OF COMPUTER ENGINEERING

S.S.M. ADSUL POLYTECHNIC COLLEGE,


CHAS, AHMEDNAGAR-414 005(M.S)

CERTIFICATE
This is to certify that the micro project report entitled

“ STUDENT DATABASE SYSTEM ”

Submitted by,
Name of student Enrollment no Program

1. ANDHALE SNEHA RAJENDRA 2214640060 CO-5-I

2. BERAD ASMITA ANIL 2214640065 CO-5-I

3. RAMNANI DIVYA SUSHILKUMAR 2214640067 CO-5-I

of semester V institute, Sau. Sundarbai Manik Adsul Polytechnic, Chas, Ahmednagar (code: 1464) has
completed the micro project satisfactorily in course (22517) for the Academic year 2024-25 as prescribed
in the MSBTE curriculum.

Place: Ahmednagar
Date: / /2024.

Prof. Palwe P.D. Prof. Hole P.P. Prof. Gadakh R.S.

(Micro Project Guide) (Head of Dept.) (Principal)


ACKNOWLEDGEMENT

We take this opportunity to acknowledge the constant encouragement and continuous help given
to us by our guide Prof. Palwe P.D. We convey our sincere thanks to her valuable timely
suggestion. We would also like to thanks principal Prof. Gadakh R.S. and Head of Computer
Department Prof. Hole P.P. We would also like to thank teaching staff of Computer Department
for helping us to achieve this goal. We are also thankful to those who directly or indirectly helped
us for completing this micro project. We would like to thank our parents without whose supports;
the completion of the micro project would not have been possible.
INDEX

Sr.no Name of Topic Pg.no

PART PLAN-A
1.0 Aim/Benefits of Micro project 2

2.0 Course Outcomes 2

3.0 Proposed Methodology 2

4.0 Action Plan 3

5.0 Resources Required 3

PART PLAN-B
1.0 Introduction to AJP 4

2.0 History of Java 4

3.0 AWT 4

4.0 Hierarchy of Java AWT classes 5

5.0 Features of Java 6

6.0 Basic Java Applet program 7

7.0 Source code 8

8.0 Output 16

9.0 Advantages & Features 20

10.0 Skills Developed 20

11.0 Actual Resources Used 20

12.0 Conclusion 21
PART PLAN -A

1.0 AIM/BENEFITS OF MICRO PROJECT

• Micro projects aim either to make necessary preparatory actions for development and
investment projects or to undertake surveys and pre-feasibility studies to justify activities
within larger projects.

2.0 COURSE OUTCOMES


• Develop programs using GUI Framework (AWT and Swing).
• Handle events of AWT and Swings components.
• Develop programs to handle events in Java Programming.
• Develop Java programs using networking concepts.
• Develop programs using database.
• Develop programs using Servlets.

3.0 PROPOSED METHODOLOGY

• Focused on the selection of the topic for micro-project.


• Select the topic i.e. To prepare a report on Student database system using Advanced Java
Programming.
• Brief study on the topic.
• Gather all information based on topic of micro-project.
• Analysis and study of the topic.
• Following all the methodology successfully helped to complete the micro-project.

2
4.0 ACTION PLAN

Sr.no Detail of activity Plan start Plan finish Name of responsible


date date team members
1. Searching of topic for micro- 21-09-2024 25-09-2024 Ramnani Divya
project.

2. Information collection from 26-09-2024 01-10-2024 Berad Asmita


internet and textbook.

3. Collect information from AJP 02-10-2024 09-10-2024 Andhale Sneha


22517 reference book and
debugged the errors.

4. Arrange all the information in 11-10-2024 21-10-2024 Berad Asmita


MS Word.

5. Prepare report on it using MS 24-10-2024 28-10-2024 Andhale Sneha


Word.

6. Print micro project 30-10-2024 02-11-2024 Ramnani Divya

5.0 RESOURCES REQUIRED

Sr.no Name of the Specification Quantity


resources required
1. Computer system 16 GB RAM, windows 10 OS 1

2. Internet Youtube/any resource As required

3. Textbook AJP 1
PART PLAN-B

1.0 INTRODUCTION TO AJP

AJP stands for “Advanced Java Programming”. Java is widely used programming language for
coding web applications. Java is a multi-platform object-oriented, and network-centric language
that can be used as a platform itself. It is fast, secure, reliable programming language. Java is a
free-to-use and a versatile language; it builds localized and distributed software. Some common
uses of java are Game development, Cloud computing, big data etc.

2.0 HISTORY OF JAVA


James Gosling, Mike Sheridan, Patrick Naughton, Chris Warth and Ed Frank initiated the Java
language project in June 1991 at Sun Microsystems. Java was originally designed for interactive
television but it was far advanced for the digital cable television industry at the time. The language
was initially called Oak after an oak tree that stood outside Goslings office. Later the project went
by the name Green and was finally renamed to Java, from Java coffee. Gosling designed java with
a C/C++style syntax that system and application programmers would find familiar.
Sun Microsystems released the first public implementation as Java 1.0 in 1995. It promised “Write
Once, Run Anywhere” (WORA), providing no-cost run –times on popular platforms. Fairly secure
and featuring configurable security, it allowed network-and file-access restrictions.

3.0 AWT
Abstract Window Toolkit (AWT) is the Java library containing the basic classes and interfaces that
can be helpful in making graphics for gaming products, banking services, educational purposes
and many more.

The interface between the user and application program is known as user-interface. A user-
interface has multiple forms, which ranges from commands to graphic clicks.

In low-level operating systems, the user has to communicate with the commands to interact with
the application. Now, a user can interact with application in just a click by tracking the mouse and
reading the keyboard.

Abstract Window Toolkit provides a better object-oriented interface to these low-level operating
systems by developing its design and the performance.

4
AWT has a set of tools that are used in various platforms by including them in the Graphical User
Interface (GUI).

Every platform has its own GUI Toolkit and the interface elements enhance the look and feel of
the applications.

AWT use this Toolkit. This approach is known as peer approach.

4.0 HIERARCHY OF JAVA AWT CLASSES

A] Component
The class Component is the abstract base class provided by AWT. Component represents an object
with graphical representation.
B] Container
The Container is a component provided by AWT which consists of several other components such
as buttons, textfields, labels etc.

The classes (For example, Frame, Dialog and Panel) which are extended from Container class are
called as containers.

C] Window
The window is the container without borders and menu bars.

To create window one has to use frame, dialog or any other window.

D] Frame
The Frame is the container which consists of title bar and menu bars. It can be container for
components such as button, textfield etc.

E] Panel
The Panel is the container which does not consists of title bar and menu bars. It can be container
for components such as button, textfield etc.

5.0 FEATURES OF JAVA

1) Simple :-
Class is a group of objects or things. It is a user defined data type that has data members and
member function. Data members are the data variable and member function are the function use
to manipulate these variables together.

2) Object Oriented :-
Java supports all object oriented concept such as Object, Class, Encapsulation, Inheritance,
Polymorphism, Abstraction, etc. Java manages the software as a combination of different types of
objects which incorporates both data and behaviour.

3) Distributed :-
As we know software is set of programs. The java programs under roof of single software can be
distributed over the network. And this Java programs can easily communicate in the distributes
environment to form the software.

6
4) High Performance :-
Java provides several high performance features such as multithreading, JIT (Just in time)
compilation which improves its performance drastically.

5) Dynamic :-
Java program dynamically can load classes and interfaces required to execute at runtime. Hence
it is known as Dynamic

6) Portable :-
Java is portable because it facilitates user to carry the Java bytecode to any platform. It doesn’t
require any implementation.

7) Multi-threaded :-
A thread is like a separate program, executing concurrently. We can write Java programs that
deal with many tasks at once by defining multiple threads.

The main advantage of multi-threading is that it doesn’t occupy memory for each thread. It
shares a common memory area.

6.0 BASIC JAVA APPLET PROGRAM


import java.applet.Applet ;
import java.awt.Graphics ;
public class HelloWorld extends Applet
{
@Override
public void paint(Graphics g)
{
g.drawString( “ Hello World ” , 20, 20 );
}
}
7.0 SOURCE CODE

import java.awt.*;

import java.awt.event.*;

import javax.swing.*;
import java.sql.*;

public class StudentForm extends JFrame implements ActionListener

private JLabel lblRoll, lblNm, lblMarks;


private JTextField txtRoll, txtNm, txtMarks;

private JButton btnInsert,btnUpdate,btnDelete,btnSelect;

private JTextArea showTable;

public StudentForm()

setTitle(“Student Registration Form”);

setSize(400, 200);

setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

Font f1=new Font(“Times New Roman”,Font.BOLD,75);

Font f2=new Font(“Times New Roman”,Font.BOLD,45);


//setFont(f1);

Container container = getContentPane();

container.setLayout(new GridLayout(6,2));

lblRoll = new JLabel(“Roll No:”);

lblRoll.setFont(f1);

lblNm= new JLabel(“Name:”);

lblNm.setFont(f1);
lblMarks= new JLabel(“Marks:”);
8
lblMarks.setFont(f1);

txtRoll = new JTextField(30);

txtRoll.setFont(f2);

txtNm= new JTextField(30);

txtNm.setFont(f2);

txtMarks= new JTextField(30);

txtMarks.setFont(f2);

showTable = new JTextArea();

btnSelect = new JButton(“Select”);

btnSelect.addActionListener(this);

btnSelect.setFont(f1);

btnInsert = new JButton(“Insert”);

btnInsert.addActionListener(this);

btnInsert.setFont(f1);

btnUpdate = new JButton(“Update”);


btnUpdate.addActionListener(this);

btnUpdate.setFont(f1);
btnDelete = new JButton(“Delete”);

btnDelete.addActionListener(this);

btnDelete.setFont(f1);

container.add(lblRoll);

container.add(txtRoll);

container.add(lblNm);

container.add(txtNm);

container.add(lblMarks);
container.add(txtMarks);
container.add(new JLabel());

container.add(showTable);
container.add(btnInsert);

container.add(btnUpdate);

container.add(btnDelete);

container.add(btnSelect);

public void actionPerformed(ActionEvent e)

If (e.getSource() == btnSelect)

selectStudent();

Else if (e.getSource() == btnInsert)

insertStudent();
}

Else if (e.getSource() == btnUpdate)


{

updateStudent();

Else if (e.getSource() == btnDelete)

deleteStudent();

}
private void selectStudent()
10
{

// Perform database connection and insertion using JDBC


Try

Class.forName(“com.mysql.cj.jdbc.Driver”);

// Replace with your MySQL database credentials

String url = “jdbc:mysql://localhost:3306/college”;

String username = “root”;

String password = “admin”;

Connection connection = DriverManager.getConnection(url, username, password);

Statement stmt = connection.createStatement();

ResultSet rs = stmt.executeQuery(“select * from student”);

String str1=”” ,str2;

While (rs.next())

String r = rs.getString(“id”);
String n = rs.getString(“name”);

Int m = rs.getInt(“marks”);
Str2= r+”\t “+n+”\t “+m+”\n”;

Str1+= str2;

showTable.setText(“Roll No\t Name\t Marks\n\n”+str1);

}catch(Exception e){}

private void insertStudent()

{
Int RollNo = Integer.parseInt(txtRoll.getText());
String Name = txtNm.getText();

Int Marks= Integer.parseInt(txtMarks.getText());


// Perform database connection and insertion using JDBC

Try

Class.forName(“com.mysql.cj.jdbc.Driver”);

// Replace with your MySQL database credentials

String url = “jdbc:mysql://localhost:3306/college”;

String username = “root”;

String password = “admin”;

Connection connection = DriverManager.getConnection(url, username, password);

Statement statement = connection.createStatement();

//insert query

String q=”insert into Student values(“+RollNo+”,’ “+Name+” ‘, “+Marks+”)”;

Statement.executeUpdate(q);

Statement.close();
Connection.close();

// Clear the form fields after saving


txtRoll.setText(“”);

txtNm.setText(“”);

txtMarks.setText(“”);

JOptionPane.showMessageDialog(this, “Student saved successfully.”);

Catch (Exception ex)

Ex.printStackTrace();
JOptionPane.showMessageDialog(this, “Error: “ + ex.getMessage());
12
}

}
Private void updateStudent()

Int RollNo = Integer.parseInt(txtRoll.getText());

String Name = txtNm.getText();

Int Marks= Integer.parseInt(txtMarks.getText());

// Perform database connection and insertion using JDBC

Try

Class.forName(“com.mysql.cj.jdbc.Driver”);

// Replace with your MySQL database credentials

String url = “jdbc:mysql://localhost:3306/college”;

String username = “root”;

String password = “admin”;


Connection connection = DriverManager.getConnection(url, username, password);

Statement statement = connection.createStatement();


//update query

String q=”update Student set name=’ “ +Name+ “ ‘, marks=”+Marks+” where

id=”+RollNo+” “;

Statement.executeUpdate(q);

Statement.close();

Connection.close();
// Clear the form fields after saving
txtRoll.setText(“”);

txtNm.setText(“”);
txtMarks.setText(“”);

JOptionPane.showMessageDialog(this, “Student updated successfully.”);

Catch (Exception ex)

Ex.printStackTrace();

JOptionPane.showMessageDialog(this, “Error: “ + ex.getMessage());

Private void deleteStudent()

Int RollNo = Integer.parseInt(txtRoll.getText());

// Perform database connection and insertion using JDBC

Try
{

Class.forName(“com.mysql.cj.jdbc.Driver”);
// Replace with your MySQL database credentials

String url = “jdbc:mysql://localhost:3306/college”;

String username = “root”;

String password = “admin”;

Connection connection = DriverManager.getConnection(url, username, password);

Statement statement = connection.createStatement();

//delete query

String q=”delete from Student where id=”+RollNo+” “;


Statement.executeUpdate(q);
14
Statement.close();

Connection.close();
// Clear the form fields after saving

txtRoll.setText(“”);

txtNm.setText(“”);

txtMarks.setText(“”);

JOptionPane.showMessageDialog(this, “Student deleted successfully.”);

Catch (Exception ex)

Ex.printStackTrace();

JOptionPane.showMessageDialog(this, “Error: “ + ex.getMessage());

Public static void main(String[] args)

{
StudentForm studentForm = new StudentForm();

studentForm.setVisible(true);
}

}
8.0 OUTPUT

16
18
9.0 ADVANTAGES & FEATURES

9.1 ADVANTAGES :-

• Real time tracking


• Reliable data
• Enhancing productivity
• Cost effective

9.2 FEATURES :-

• Centralized and Real time Data


• Low costing
• Error free payroll calculation
• No Manipulation

10.0 SKILLS DEVELOPED

1. They’ll improve their proficiency in Java programming, including concepts like object
oriented programming, data structures, and algorithms.
2. Designing and implementing an attendance management system involves identifying and
solving various problems related to data management, user interface design, and system
architecture.
3. Students will learn how to integrate a database into their Java application for storing and
retrieving attendance data efficiently

11.0 ACTUAL RESOURCES USED

Sr.no Name of the Specification Quantity


resources required
1. Computer system 16 GB RAM, windows 10 OS 1

2. Software Jdk-19 1

3. Internet Youtube/any resource As required

4. Textbook AJP 1

20
12.0 CONCLUSION

• Java offers the real possibility that most programs can be written in a type-
safe language. However, for Java to be broadly useful, it needs to have more
expressive power than it does at present.
• Java extends Java with a mechanism for parametric polymorphism, which
allows the definition and implementation of generic abstractions. The paper
gives a complete design for the extended language.
ANNEXURE II
Evaluation Sheet for the Micro Project
Academic Year : 2024-25

Name of Faculty: Prof. Palwe P.D.

Course: AJP Course Code: 22517 Semester: 5th

Title of the Project: STUDENT DATABASE SYSTEM


COs addressed by the Micro Project:

A: Develop Java programs using networking concepts.


B: Develop programs using database.
Major learning outcomes achieved by students by doing the Project:

(a)Practical outcomes:
1. Write a program to insert and retrieve the data from database using JDBC.
2. Write a program to update and delete a record from database table.
(b)Unit outcomes in Cognitive domain:
2a. Choose JDBC or ODBC depending on given application requirement.
2b. Use relevant type of JDBC Driver for the specified environment.
(c)Outcomes in Affective Domain----------------------------------------------------------------------

---------------------------------------------------------------------------------------
Comments/Suggestion about team work/leadership/inter-personal communication (if any)

Marks out of 6 for Marks out of 4 for


Total
Sr. performance in performance in oral/
Student Name out of
No. group activity (D5 presentation (D5
10
Col. 8) Col.9)
1 ANDHALE SNEHA R.
2 BERAD ASMITA A.
3 RAMNANI DIVYA S.

(Name & Signature of Faculty)

Prof. Palwe P.D.

You might also like