Student Information System
Student Information System
4
Date:
AIM
To develop a project Student Information System using Rational Rose
Software and to implement the software in Java.
PROBLEM ANALYSIS AND PROJECT PLANNING
A Student information system (SIS) is a software application for
educational establishments to manage student data. Student information
systems provide capabilities for entering student test and other
assessment scores, building student schedules, tracking student
attendance, and managing many other student-related data needs in a
school, college or university.
PROBLEM STATEMENT
a. Effective for Administration Purpose
b. Cheap
c. Better Service
UML DIAGRAMS:
The following UML diagrams describe the process involved in the online
recruitment system
a. Use case diagram
b. Class diagram
c. Sequence diagram
d. Collaboration diagram
e. Activity diagram
f. Component diagram
USE CASE DIAGRAM:
A use case is a methodology used in system analysis to identify, clarify, and
organize system requirements. The use case is made up of a set of possible
sequences of interactions between systems and users in a particular
environment and related to a particular goal. It is represented using ellipse.
Actor is any external entity that makes use of the system being modelled. Its
represented using stick figure
For Administrator:
Admin Login
Add Student
Admin
Delete Student
For Student:
Database
Student Login
Message
Attendance
Student
Profile
Result
Time Table
Fee
Library
Log Out
Databa
a. Admin register login, and store the student records details in database.
b. Student Register from the Student Login process.
c. Then the database is searched for details and verified.
d. Database stores the details and returns acknowledgement
CLASS DIAGRAM:
A class diagram in the unified modeling language (UML) is a type of
static structure diagram that describes the structure of a system by showing
the system's classes, their attributes, and the relationships between the
classes. It s represented using a rectangle with three compartments. Top
compartment have the class name, middle compartment the attributes and
the bottom compartment with operations.
Login
Student details
+username
+password
+Name
+Address
+Age
+Course
+Department
+Phone no
+Login()
+validation()
+get_data()
+display()
+get_data()
+Display()
Update details
+Student details
+Result details
+Updae_info()
+get_detail()
+Display()
Admin/Student
Validation
Database
3 : Validate()
4 : Successful validate()
For Administrator:
Login
Admin
ReqAdd Student
ReqUpdate Student
3 : Valid user()
4 : Successful login()
5 : Enter details for adding a student()
6 : Add()
7 : Successful()
8 : Successfully added()
9 : Enter credentials for update student record()
10 : Update()
11 : Successful(
12 : Successfully Updated()
For Student:
Login
Student
ReqView Profile
ReqView Details
3 : Valid()
4 : Valid login()
5 : Request for view profile()
6 : Request()
7 : Set Details()
8 : Get the details()
9 : Request for view Details()
10 : Reque
11 : Set De
COLLABRATION DIAGRAM:
A collaboration diagram, also called a communication diagram or
interaction diagram,. A sophisticated modeling tool can easily convert a
collaboration diagram into a sequence diagram and the vice. A collaboration
diagram resembles a flowchart that portrays the roles, functionality and
behavior of individual objects as well as the overall operation of the system
in real time
For Validity:
Database
3 : Validate()
For Administrator:
Database
3 : Valid user()
6 : Add()
10 : Update()
7 : Successful()
11 : Successful()
ReqAdd Student
ReqUpdate Student
1 : Enter Credentials for login()
8 : Successfully added()
12 : Successfully Updated()
9 : Enter credentials for update student record()
Admin
4 : Successful login()
For Student:
Database
3 : Valid()
6 : Request()
10 : Request()
7 : Set Details()
Login
11 : Set Details()
ReqView Profile
ReqView Details
4 : Valid login()
1 : Enter credentials for login()
Object1
Student
ACTIVITY DIAGRAM:
Activity diagrams are graphical representations of workflows of stepwise
activities and actions with support for choice, iteration and concurrency. In
the Unified Modeling Language, activity diagrams can be used to describe
the business and operational step-by-step workflows of components in a
system. An activity diagram shows the overall flow of control. An activity is
shown as an rounded box containing the name of the operation.
DOCUMENTATION OF ACTIVITY DIAGRAM
This activity diagram flow of stepwise activities performed in
recruitment system.
a. The student details are Add and stored in database.
b. Select the course from the given Course by student.
c. Search Profile and Result with login and if data present in the
database.
d. The searched data is displayed if available and then Log Out.
Login
back to registration
COMPONENT
DIAGRAM:
The component
diagram's main
Student Registration
purpose is to
show
the
structural
relationships
between
the
components of a
system. It is
If No
represented by
Yes
boxed
figure.
Dependencies
Select Course are represented
by
communication
association.
Profile
Result
Fee
Library
Log Out
User
IUser
<<application>>
Management
<<infrastructure>>
Persistence
Request
IRequest
DB
J DBC
DEPLOYMENT DIAGRAM:
A deployment diagram in the unified modeling language serves to model
the physical deployment of artifacts on deployment targets. Deployment
Diagrams show "the allocation of artifacts to nodes according to the
Deployments defined between them. It is represented by 3-dimentional box.
Dependencies are represented by communication association.
Administrator
Student
Access Databas
Coding:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.sql.*;
public class jdbcframe1 extends JFrame implements ActionListener
{
public JLabel l1,l2,l3,l4,l5;
public JTextField t1,t2,t3,t4,t5;
public JButton b1;
Container c;
public jdbcframe1()
{
setSize(180,400);
setTitle("STUDENT DETAILS");
setVisible(true);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
c=getContentPane();
c.setLayout(new FlowLayout());
l1=new JLabel("Regno");
c.add(l1);
t1=new JTextField(10);
c.add(t1);
l2=new JLabel("Name");
c.add(l2);
t2=new JTextField(10);
c.add(t2);
l3=new JLabel("Dept");
c.add(l3);
t3=new JTextField(10);
c.add(t3);
l4=new JLabel("Course");
c.add(l4);
t4=new JTextField(10);
c.add(t4);
l5=new JLabel("Contact");
c.add(l5);
t5=new JTextField(12);
c.add(t5);
b1=new JButton("SAVE");
c.add(b1);
b1.addActionListener(this);
}
public void actionPerformed(ActionEvent ae)
{
if(ae.getSource()==b1)
{
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection
con=DriverManager.getConnection("jdbc:odbc:student");
Statement st=con.createStatement();
PreparedStatement ps,ps1;
ps1=con.prepaeStatement("select
*
from
student
regno="+t1.getText());
where
ps=con.prepareStatement("insert
student(regno,name,dept,course,contact)values(?,?,?,?,?)");
ps.setString(1,t1.getText());
ps.setString(2,t2.getText());
ps.setString(3,t3.getText());
ps.setString(4,t4.getText());
ps.setString(5,t5.getText());
ps.executeUpdate();
JOptionPane.showMessageDialog(null,"RECORD SAVED");
}
catch(SQLException sq)
{
System.out.println(sq);
System.out.println("\nHai this place is error occur");
}
catch(Exception e)
{
System.out.println(e);
}
}
}
public static void main(String args[])
{
jdbcframe1 f=new jdbcframe1();
}
}
Output:
into