P. 1
Hostel Management System

Hostel Management System

|Views: 7,224|Likes:
Published by Yashwanth Reddy

More info:

Published by: Yashwanth Reddy on Feb 08, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

04/23/2015

pdf

text

original

1

1.1 Abstract

“Hostel Management Information System” should maintain all the Hostel Student information. The Hostel environment consists of students, Fee, Room etc so the Hostel Management information system should maintain details of all students ie., their bio-data ,their personal Information etc. Fee details like Room rent ,Mess ,Management ,amount etc and also details like Room to which a particular student belong, their attendance, their Refund etc. Therefore it is obvious that system maintains vast amounts of data. In such cases computerization of the system is inevitable. The ideal reasons for computerizing Hostel Management system are as follows.

2

PROJECT DESCRIPTION This project deals with the Hostel Management System. This project is having different modules like new Student information creation form ,Fee information form, Attendance and Room Allotments forms. This was submitted with One modules given below 1). Login Option: If the user already contains an account in this system, this form permit to enter in to this Hotel Management system. Now he can use all the facilities provided by this Mailing System. User Menu: Provides a way to give any commands to the Hostel Management System, the options include in the menu are 1. 2. 3. 4. 5. 6. 7. Student Fee Details Room Allotment Attendance Refunds Reports Exit

1. Student: This screen having option to enter entire details of student and have an option to save the Details. The fields in this screen are: Studen ID: It is Uniquely identified by the each student Stuname: Student Name. Age: Age of the Student . Address : Address of the student Mobile: Mobile number of the student

3

it display all the student details in the Hostel and their personal details. Fee: If the user selects this option on the user menu the corresponding Fee details of the user will be displayed. Modify: This option is used to update any student room allotment information. This screen can be used to add new details to the database system. It contains following providers Save: User to save the details of the student. 3) Attendance: Using these options the user can selects Attendance option . 4) Room Allotment: By clicking this option one more screen will be displayed on the screen is Room Allotment screen. one option is provided as a save by clicking on the save button . the screen will provide option to show details of the All student. Save: User to save the details of the student. To read the different fields.By selecting this option menu new screen will be displayed. Student: when we click on this button. it display all the particular student details based on student id’s. This form will contains all information about balance amount.. 4 . different student id’s will be available . 6)Reports:. 5) Refund: By selecting options menu one more screen will be displayed. All Student: when we click on this button. the screen is Refund amount Screen.2). amount payee by the student and also fine details for a particular student. finally save it by clicking save button. Here various listings of room with the room number and there floor name. student and fee details reports. if u want a particular student id select one of them from the drop down list and enter corresponding details . Here we have various options.

Kanchipuram is the brain child of his Holiness Sri Jayendra saraswathi Swamigal.active participation of the Authorities and guidelines and blessing of his Holiness. South India. M..Sri Chandrasekharendra saraswathi Swamigal whose name is bestowed on the Maha Vidhyala has cherished a desire ti revive Kanchipuram to its prestige glory as a center of learning.the sankaracharya of kanchi kamakoti petam.E. programs successfully.it has equipped itself adequately to run M.A. Enathur. The status of the university was conferred on this Institution in 1993.C. The University started functioning for 1994-95 academic years with very limited resources..is being sponsored by Sri Kanchi Kamakoti Peetam charitable Trust. Sri Chandrasekharendra Saraswathi Viswa Maha Vidyalaya University.2 ORGANIZATION PROFILE: Sri Chandrasekharendra Saraswathi Viswa Maha Vidyalaya.The rapid progress of the University shows the dedication of the employees. 5 . B. A largest library in Asia is in Sri Chandrasekharendra Saraswathi Viswa Maha Vidyalaya University Library.B.but with in a short span of five years.is one of the premises University of India named after the 68th Acharya of Sri Kanchi Kamakoti Peetam. It is located at Enathur four kms from the Kanchipuram. faculties in training the students.1.A.

6 .

Attendance etc.4 Limitations of existing system: As described earlier the existing manually maintained system is subject to many errors and disadvantages. 1. then look in for the Room number he is stay in and based on that check for the Attendance and Refund record or related record.  Inaccuracy: Maintenance of vast data manually has many chances of inaccuracy of data. All these details are entered and retrieved manually. if a particular student’s is to be known. Fee details. preparations of reports manually are all very time consuming.The main disadvantages are as follows:  Time Consuming: Retrieval of required data takes much time as the data is put at several places and one has to browse through many files to get even a small piece of data. Room Allocation . All the Hostel Student details are entered into records manually. Separate records are to be maintained for the details of each student. In such a system.3 EXISTING SYSTEM The existing system is a manually maintained system. Also the updating process. first track the identification number.1. 7 .

Also data cannot be lost due to natural disasters. Computerization provides easy and quick access over the data. 8 . encoding data can be used to maintain data security. Java has been chosen for this project because Java applications are portable across a wide range of platforms and operating systems.1. Java AWT controls provide tools to develop the package to be efficiently used by the end users. Authorization schemes like giving passwords.5 PROPOSED SYSTEM The Proposed system is the computerized version of the existing system. It rectifies most of the pitfalls of the existing system and maintains databases of all the entities participating in the system.

9 .

1 Hardware Requirements Processor RAM Hard Disk CD Drive Monitor Keyboard : Pentium : 512MB : 4GB : LG : LG Monitor : Logitech 2.2.0 10 .2 Software Requirements Language Operating System Software Tool Database : JAVA : Windows XP Professional : JAVA (Swings) : Command Prompt : Oracle 8.

Java interpreter 11 . Simple and Small  Multithreaded and Interactive  High Performance  Dynamic and Extensible These features have made java the first application language of the World Wide Web. Byte codes are not machine instructions and therefore. compact and interactive. in the second stage. They wanted the language to be reliable. Java combines both these approaches thus making Java a two-stage System.SOFTWARE DESCRIPTION JAVA FEATURE The inventors of Java wanted to design a language.  Compiled and Interpreted: Usually a computer language is either compiled or interpreted. which would offer solutions to some of the problems encountered in modern programming. portable and distributed but also simple. Sun Microsystems officially describes Java with the following attributes:  Compiled and Interpreted  Platform-Independent and Portable  Object-oriented  Robust and Secure  Distributed  Familiar. First Java compiler translates the source code into what is known as the byte code instructions.

Simple. Java supports multithreaded programs. Java ensures portability in two ways. Familiarity is another striking feature of java.generates machine codes that can be directly executed by the machine that is running the Java program. First. go statements and many others. Multithreaded and Interactive:-  Multithreaded means handling multiple tasks simultaneously. we can download a Java applet from a remote computer onto out local system via Internet and execute it locally. the sizes of the primitive data types are machine-independent. It also eliminates operator overloading multiple inheritance. Java compiler generates byte code instructions that can be implemented on any machine. Secondly. 12 . Small and Familiar:-  Java is a small and simple language . Java programs can be easily moved from one computer system to another. anywhere and anytime. Java is a simplified version of c++. we can thus say that Java is both a compiled and interpreted language.java does not use pointers. preprocessor header files.  Platform-independent and Portable:The most significant contribution of java over other languages is its portability.

 High Performance: Java’s performance is impressive for an Interpreted language. 13 . methods and objects. These functions are known as native methods. Dynamic and Extensible: overall overheads during runtime .This feature greatly improves the interactive performance of graphical applications.The incorporate of multithreaded enhances the overall execution speed of  Java is a dynamic language. Java architecture is also designed to reduce java programs. Java is capable of linking in new class libraries. Java programs support functions written in other languages such as c and c++. mainly due to the use of intermediate byte code.

Oracle is an object-relational database. Oracle8 (object Relational Database Management System) offers capabilities of both relational and object-oriented database systems. Overview OF RDBMS RDBMS is the acronym for Relational Database Management System. It is know exaggeration to say that many thousands of organizations have become critically dependent on the continued and successful operations of a database system. which are location independent and perform a specific task on any application environment with little or no change to code. The most famous RDBMS packages are Oracle . Introduction to Oracle Oracle is the most widely used database in the world. A relational database is an extremely simple way of thinking about and managing data used in a business.ABOUT ORACLE Data base technology has been described as one of the most rapidly growing areas of computer and information science. Sybase and Informix. It runs on virtually every kind of computer. Objects can be defined as reusable software codes. 14 .

Oracle products are based on a concept known as the ‘Client/Server Technology’. This concept involves segregating the processing of an application between two systems. TOOLS FOR ORACLE: The tools provided by Oracle are so users friendly that a person with minimum skills in the field of computers can access them with ease. One performs all activities related to the database and the other performs activities that help the user to interact with the application. The main tools are following:  SQL*PLUS  PL/SQL  Forms  Reports SQL*PLUS and controls database access and other security 15 . The database server or backend is used to manage the database tables optimally among the multiple clients who concurrently request the server for the same data. It also enforces data integrity across all the client applications requirements.

Using SQL * Plus we can perform calculations. PL/SQL PL/SQL is an extension of SQL. We can create a wide variety of reports.SQL*PLUS is a structured Query Language supported by Oracle. Oracle Forms Builder is the design component of Oracle Forms. edit enter and SQL commands and PL/SQL blocks. 16 . displaying and printing reports. A form basically comprises blocks and fields. Through SQL * PLUS we can store. Multiple tables can be accessed over a single form. executing. list column definitions for any tale and can also format query result in the form of a report. PL/SQL block can contain any number of SQL statements integrated with flow of control statements. retrieve. REPORTS It is an application development tool for Oracle for developing. based on the application with the help of transaction commands. which have various modes. Thus PL/SQL combines the data manipulating power of SQL with data processing power procedural languages. FORMS This is a graphical tool used for generating and executing Forms based application.

17 .

1 Overall System Design Structure Login Student Information Fee Details Room Allotment Attendance Refund Reports Student Info New Modify Delete 18 .3.

It identifies the path that data take the processes that cause data and its final destination.Fee New Old Reports Student Fee Details Balance 3.2 DATA FLOW DIAGRAM Data Flow Diagram graphically represents the flow of data through system and services as a model of system. 19 .

.An open rectangle is a data store.Arrow identifies data-flow data in motion. .Circle represents a process that transforms incoming data flows into outgoing data flow(s). DFD Symbols: In DFD there are four symbols. - Terminator defines a source or destination of system data. It is a pipeline through which information flow. .Logical DFD’s are also found to be easier since they show the sequence of transmission or conversation of data by different process of the system. 20 .

Use Case Diagrams:- STUDENT INFO FEE DETAILS DATABASE ROOM DETAILS ATTENDANCE REPORTS 21 .

Balance . Total days. Room No. gender.date Public void Fee Public void setup Public void action Room Student id. Total amt. Present and absent days Public void Attendance Public void setup Public void action 22 .UML DIAGRAMS:- Level :0 Level : 1 Student Login Fee Level:2 Room Refund AttenDance Student Student id. age. mobile Public void Student Public void setup Public void action Fee Student id.fine. student name. date Public void Refund Public void setup Public void action Attendance Student id. Balance . Floor Number Public void Room Public void setup Public void action Refund Student id. Total amt.

2 7. of Months Total Amount Date of pay Amount Pay Balance Table Name: Room FIELD NAME Stuid Course DATA TYPE Number Varchar2 SIZE 10 5 CONSTRAINTS DESCRIPTION Foreign Key Not null Student ID Course Name 23 .2 7.4 Database Design:Table Name: Student FIELD NAME Stuid Stuname Fname Age Hostel Gender Mob Dat DATA TYPE number Varchar Varchar Number Varchar Varchar Varchar Date SIZE 10 15 15 2 15 6 10 CONSTRAINTS DESCRIPTION Primary Key Not null Not null Not null Not null Not null Not null Not null Student ID Student Name Father Name Age Hostel Name Gender Mobile Number Date of Join Table Name: Fee FIELD NAME Stuid No_mon Total_amt Date_Of_pay Amt_pay Balance DATA TYPE Number Number Number Date Number Number SIZE 10 2 7.3.2 CONSTRAINTS DESCRIPTION Foreign Key Not null Not null Not null Not null Not null Student ID No.

Room_No Floor Number Varchar2 2 1 Not null Not null Room Number Floor Name Table Name: Attend FIELD NAME Stuid Total_days Present_days Absent_days DATA TYPE Number Number Number Number SIZE 10 3 3 3 CONSTRAINTS DESCRIPTION Foreign Key Not null Not null Not null Student ID Total Days Present Days Absent Days Table Name: Address FIELD NAME Stuid Door_No City State Pin code DATA TYPE Number Varchar2 Varchar2 Varchar2 Number SIZE 10 15 10 15 7 CONSTRAINTS DESCRIPTION Foreign Key Not null Not null Not null Not null Student ID Door No City State Pincode 24 .

Hostel Main Form:import java.event.swing.b5. 25 . public class Hostel extends JFrame implements ActionListener { JButton b1.b3.*. import javax.io.b6.*.*.b4.event. import java. JLabel l1.swing. import javax.*.*. import java.b7.b2.awt.awt.

b7.red).150.setBounds(300.setBounds(450. b6.150. l1.150. l1=new JLabel("Hostel Management System").setBounds(450.add(b1).addActionListener(this).setBounds(150. b7=new JButton("Refund").setForeground(Color.25).600). setBackground(Color. } public void setup() { setLayout(null). b4.150.25).25). setVisible(true). b1.250.300.150.150. b1=new JButton("Student Info").addActionListener(this).25).25).addActionListener(this).addActionListener(this). } 26 .200.addActionListener(this). b3=new JButton("Fee Details"). addWindowListener(new WindowEventHandler()). l1.400.add(b2).ITALIC.200. b3. b1. add(l1).250.setBounds(450.addActionListener(this).add(b5). b6=new JButton("Reports").25).380.Font.setFont(new Font("Monotype Corsiva". b4.setBounds(150.add(b7). l1. b2=new JButton("Room Allotment"). b5.setBounds(150.150.setBounds(250.add(b4).25)).25). setup().100.300.addActionListener(this). b4=new JButton("EXIT").25). b5=new JButton("Attendance"). setSize(800. b3. b2.add(b3).black).cyan). b2. b7. b5. setForeground(Color.add(b6). b6.public Hostel() { super("Hostel Management System").

equals("EXIT")) { System. Attend a=new Attend(). } else if(sst.public static void main(String s[]) { Hostel h=new Hostel().equals("Room Allotment")) { dispose().equals("Student Info")) { dispose(). } else if(sst. Feedet f=new Feedet(). } else if(sst.equals("Refund")) { 27 . } else if(sst. if(sst. Room r=new Room(). } public void actionPerformed(ActionEvent ae) { String sst=ae. new Report(). } else if(sst.equals("Fee Details")) { dispose(). } else if(sst.equals("Attendance")) { dispose(). Stu st=new Stu().equals("Reports")) { dispose().exit(0).getActionCommand().

awt. import java.sql.*.event.event.*.*.dispose().*.*. } } class WindowEventHandler extends WindowAdapter { public void windowClosing(WindowEvent we) { System. public class Student extends JFrame implements ActionListener 28 . import java.swing. import java.*. import javax.util. import java.awt. } } } Student Registration Form:import java.*.exit(0).*. import javax.io.lang. import java. new Refund().swing.

t3.as.l10." Nov"."Aug".{ JLabel l1.ITALIC.160.200. l1. l3=new JLabel("Student Name").180.b3.pin.t7.25). l1. setVisible(true).red)."Feb".ag.ch2.t6. 29 .l. t3=new JTextField().120.setFont(new Font("Monotype Corsiva".l6.a3.setBounds(240."Sep".l4. t2=new JTextField()."Apr". JButton b1.a2.ch1. setup().l9. Statement st.120.25)."Oct".l2.ld."July". l2=new JLabel("Student ID").25). Connection con. l4=new JLabel("Father's Name").25)). String mon[]={"Jan".setBounds(240.l3.200. JTextField a1."May". t2.setBounds(280. t3. l2.Font.ast. public Student() { super("Student Info"). JTextField t2. l1=new JLabel("Student Registration Form").25)."Mar".setBounds(70.l5. TextArea ta1.b2. l3. addWindowListener(new WindowEventHandler()).25).setBounds(70.l7. setFont(new Font("Courier". l1.120.160."Jun".BOLD.100.setForeground(Color. Choice ch.Font.t4. } public void setup() { setLayout(null).50. JLabel an."Dec"}.l8.15)).

l4.add("Karnataka").350.200.25). an. ch2.setBounds(70.25).160.setBounds(420.160.400. a2=new JTextField().setBounds(500. ch2.25).add("Andhra Pradesh").300.setBounds(240.200. 30 .25). a1.160. t6=new JTextField().setBounds(70. ch2.160.25).350.100.25).add(""). pin.setBounds(470.setBounds(300.setBounds(240.300. ast=new JLabel("State").200. ch2=new Choice().200.setBounds(420. pin=new JLabel("Pincode"). t4=new JTextField().setBounds(70.160. as=new JLabel("City").240.300.25). a1=new JTextField().300. t4. ch2. ast. l7=new JLabel("Mobile").200.240. a3. a3=new JTextField().140.100.setBounds(300.25). t6.setBounds(240.25).setBounds(70.add("TamilNadu"). l5.350.160. a2.setBounds(470. l6=new JLabel("Address").25). l7.25). ch2. an=new JLabel("House No").400. l6. as.25). l8.160.25). l8=new JLabel("Gender"). l5=new JLabel("Age").100.25).350.setBounds(240.280.25).100.

l10.i<=100. l9=new JLabel("Hostel Name").25). l9. ch=new Choice().25).add(""+i).120.i++) ag.100. ch1.25). b3. ld.210.setBounds(550. ch1.450.150. b3=new JButton("Clear").100. Calendar cal=Calendar.450.100.add("Female").25).70.120.add(""). for(int i=0.240.setBounds(480.setBounds(550.450.b1=new JButton("Save"). b1. ch1. ch1=new Choice(). ag=new Choice().260.setBounds(500. l.add("").setVisible(false).200.add("Male").setBounds(500.25). ag. ag.setBounds(340. l=new JLabel("*"). ld=new JLabel("Date").getInstance().30.25).setBounds(240. t7=new JTextField(). l10=new JLabel("* Invalid Values").25).100.150. ch. l10.100. ch. t7.25). ch1.add("Vishalakhshi").setBounds(550. b2.100. 31 .setBounds(200.180.setVisible(false). ch.add("Annapoorni"). b2=new JButton("Cancel").25).setBounds(20.25).

getText().add(a3).equals("Save")) { String id=t2. setSize(800.add(l8).add(as).add(ch). String age=ag.add(b2). b2.DATE)+"/"+mon[cal.addActionListener(this).setEditable(false).getText().add(l6).add(l2).addActionListener(this). add(l1).add(t6).length()==0){ 32 .add(t7).add(ch2). String fname=t4.getSelectedItem().getText(). add(t4).getText().add(a1).add(ch1).add(l5). add(a2). String hname=ch1.add(l7). String gender=ch.add(l3).String dat=cal.getText().add(pin). add(l9).getText().add(b3).getSelectedItem().addActionListener(this).add(t3).add(ag). String sta=ch2. } public void actionPerformed(ActionEvent ae) { String sst=ae. if(sst.getText(). t7.get(Calendar. t7.getText().MONTH)] +"/"+cal.get(Calendar. b3.get(Calendar. String str=a2.cyan). String pin=a3. add(b1).add(an).getSelectedItem(). String mob=t6.600). if(id. String da=t7.getSelectedItem(). setBackground(Color. add(l). String no=a1.add(ld).add(t2).setText(""+dat). //Double a=Double.parseDouble(id).YEAR). String nam=t3. b1.add(ast).getActionCommand().add(l10).add(l4).

"invlaid Mobile number").JOptionPane.length()!=10){ JOptionPane."invlaid hostel name"). if(n==0) { try { int an=Integer.} else if(gender.showMessageDialog(null.} else if(hname."invlaid State")."pincode havaing 6 numbers").} else if(str.showMessageDialog(null."invlaid ID").} else if(age.length()==0){ JOptionPane."invlaid pincode").length()==0){ JOptionPane.} else if(fname."invlaid age").showMessageDialog(null. } } 33 .length()==0){ JOptionPane.} else if(nam.showMessageDialog(null.} else if(no.length()!=6){ JOptionPane.} else if(pin.length()==0){ JOptionPane.} else if(sta."invlaid Student name number").showMessageDialog(null."invlaid Door number"). n=1.length()==0){ JOptionPane.length()==0){ JOptionPane.showMessageDialog(null."invlaid Father name").} else if(mob. } catch(Exception e) { JOptionPane.showMessageDialog(null.length()==0){ JOptionPane."Enter numbers only in ID").showMessageDialog(null.showMessageDialog(null.showMessageDialog(null.showMessageDialog(null.} else if(pin.length()==0){ JOptionPane.} else { int n=0."invlaid gender")."invlaid city").length()==0){ JOptionPane.parseInt(id).showMessageDialog(null.showMessageDialog(null.

if(n==1) { try { Long an=Long. for(int i=0.i<len. } } if(n==3) { int le=fname.isDigit(s[i])) { JOptionPane. } } if(n==2) { int len=nam.length(). for(int i=0."Enter numbers only in Mobile field"). } else n=3.toCharArray(). n=2.length().i<le.showMessageDialog(null. n=2.i++) { if(Character. } catch(Exception e) { JOptionPane.parseLong(mob).showMessageDialog(null.isDigit(s[i])) { 34 . i=len."Enter text only in name field"). char s[]=fname. char s[]=nam.toCharArray().i++) { if(Character.

'"+sta+"'.showMessageDialog(null.executeUpdate("insert into student values("+id+".'"+no+"'. } catch(Exception e) { JOptionPane. dispose().parseInt(pin)." Record insert sucessfully").JOptionPane.createStatement().odbc."Enter numbers only pincode"). } } if(n==4) { try { int an=Integer. st. n=3."Enter text only father name field"). con.forName("sun. 35 . st=con.getConnection("jdbc:odbc:Hostel".showMessageDialog(null.'"+str+"'. JOptionPane.jdbc.'"+fname+"'.'"+hname+"'. con=DriverManager.'"+da+"')"). i=le."+age+".JdbcOdbcDriver"). st. n=5.'"+nam+"'."+ mob+". } else n=4.close()."ramesh"."+pin+")"). st.executeUpdate("insert into address values("+id+". } } if(n==5) { try { Class.showMessageDialog(null."rams").'"+gender+"'.close().

36 ." sql Error is occured").setText(""). a1. t4.out.showMessageDialog(null.equals("Cancel")) { dispose().setText(""). } catch(Exception e) { System. a2. } else if(sst.setText(""). } } public static void main(String s[]) { Student stt=new Student().new Hostel(). t6. a3. } class WindowEventHandler extends WindowAdapter { public void windowClosing(WindowEvent we) { dispose().setText(""). Stu st=new Stu().setText("").println("SqlException Caught:"+e).setText(""). JOptionPane. } } } } else if(sst.setText(""). new Hostel(). t3.equals("Clear")) { t2.

*.ld.t3."Apr".*. setVisible(true).t8.b3."Feb".t9.t6.awt. import java.t4."Aug"."Jun".l10. addWindowListener(new WindowEventHandler())."Oct"."May".b2. public Fee() { super("Fee Information"). } public void setup() { 37 . import java.*.FocusListener { JLabel l1.l5. ResultSet rs.swing. JTextArea ta1. import java. public class Fee extends JFrame implements ActionListener. Choice ch.swing.event."Mar".l8. import javax."July".awt.l7.l3. JTextField t2.t5.sql.*.*. import javax. Connection con.l6.l9.*.t10.io. String mon[]={"Jan". import java.util.l2.t7. JButton b1."Sep"." Nov".*.td. setup().l4.ch1.event."Dec"}. Statement st. Choice ch2.} } } Fee Information Form:import java.

setForeground(Color.25).25).160.setEditable(false).setBounds(240.add("").ITALIC.setBounds(70.100. l1.Font. t3.15)). /*t2=new JTextField().25). t5.160.25). t4.60. l4=new JLabel("Mess").setEditable(false).setBounds(360.setBounds(250.*/ ch2=new Choice().50.200.25).red). t6=new JTextField().120. t3. l2. t4.setBounds(240.60. l4. t2.120.25)).setEditable(false).setBounds(240. l1=new JLabel("Fee Information").Font.25). t5.100.setBounds(360.25).180. l6.setFont(new Font("Monotype Corsiva".setBounds(70.60.100.160. ch2.BOLD.160. l3=new JLabel("Room Rent").160.setText("2000").200.25). t4.180.60. t3=new JTextField().setBounds(430. l3.25).setText("9000").setBounds(70. t5.setBounds(240. t5=new JTextField().400. l5. l5=new JLabel("Hostel Management"). 38 . l2=new JLabel("Student ID").25).200. t3. t4=new JTextField().120. l6=new JLabel("No of Months").setLayout(null). l1.25). l1. setFont(new Font("Courier". ch2.setText("6000").

td=new JTextField().120. td.240.280. l8. l10.80.setBounds(360.25). l9=new JLabel("Balance"). t10.getInstance().setBounds(240. t9=new JTextField(). t10.setBounds(450.setBounds(550.setBounds(70. b1=new JButton("Save").YEAR).get(Calendar. Calendar cal=Calendar.240.setBounds(200.get(Calendar.setBounds(520.25).setText(""+dat).25). l8=new JLabel("Amount Pay"). l7=new JLabel("Total Amount").25).setBounds(500.80.100.25). t10.25). t10=new JTextField().100. l10=new JLabel("Others").t6.setBounds(240.25).25).25).330.DATE)+"/"+mon[cal.40.450.80. t8=new JTextField(). td.setBounds(70.280.320.MONTH)] +"/"+cal. l9.120.120. ld.get(Calendar.25). t8.80.60.setBounds(240.25).setEditable(false).120. t7.25). t7=new JTextField(). ld=new JLabel("Date").330. b1.120. t9.setBounds(70. String dat=cal. l7.100.200.320.setText("9000"). 39 . b2=new JButton("Cancel").

450.JdbcOdbcDriver").odbc. st=con.25).b2.forName("sun. } } catch(Exception e) { System.cyan). t8. add(l1).add(l2)."rams").setBounds(480.addFocusListener(this).println(e). JOptionPane.setEditable(false). rs=st. try { Class.add(t3). ch2. setSize(800.add(t5). while(rs.executeQuery("select stuid from student"). td.add(td).add(l6).setBounds(340. add(ch2). b3.add(l 10). b1.jdbc.add(t8).add(t4).addActionListener(this).add(t9).createStatement().add(l8).addActionListener(this). add(b1).100.600)."ramesh". add(ld)."Sql error occured").addActionListener(this).450.add(t7).add(l4).100. b2.add(l5).add(l3).addFocusListener(this).getConnection("jdbc:odbc:Hostel".out.add(b2). } } public void focusLost(FocusEvent f) { if(f.showMessageDialog(null. setBackground(Color. b3.add(b3).add(t6).getInt(1). b3=new JButton("Clear").add(l9). con=DriverManager.25).add(l7).getSource()==t8) 40 .add(t10).next()) { int a=rs. t6.add(""+a).

showMessageDialog(null.getText()) +Integer. String bal=t9.getActionCommand().getText().} else if(mon.setText(""+res).getText()).getText()).parseInt(t5.getSource()==t6) { int res=Integer. if(id.getText())+Integer.getText().length()==0){ JOptionPane.getText().parseInt(t8.parseInt(t6. int mon=Integer.getSelectedItem().getText())+Integer.} else { 41 .parseInt(t4.parseInt(t3. String dat=td.getText().getText())-Integer.length()==0){ JOptionPane.showMessageDialog(null."invlaid ID"). String total=t7.setText(""+b). t7. t9.showMessageDialog(null.parseInt(t10.parseInt(t7."invlaid amount pay"). if(sst.length()==0){ JOptionPane. String mon=t6. } else if(f."invlaid Months"). res=(res*mon)/6.getText()).} else if(pay.getText(). String pay=t8.equals("Save")) { String id=ch2.{ int b=Integer. } } public void focusGained(FocusEvent fe) { } public void actionPerformed(ActionEvent ae) { String sst=ae.

} } if(n==2) { try { Class."Enter numbers only in month field").jdbc. } catch(Exception e) { JOptionPane. 42 . if(n==0) { try { int an=Integer. con."+total+"."+pay+".createStatement()."rams").int n=0. n=1."Enter numbers only in Paying amt")." Record insert sucessfully"). JOptionPane.parseInt(pay). st=con.showMessageDialog(null. st. st. con=DriverManager.close().showMessageDialog(null."+bal+")").showMessageDialog(null.odbc.executeUpdate("insert into fee values("+id+"."+mon+".getConnection("jdbc:odbc:Hostel".forName("sun. } catch(Exception e) { JOptionPane. n=2.close()."ramesh".'"+dat+"'.JdbcOdbcDriver"). } } if(n==1) { try { int an=Integer.parseInt(mon).

t8. new Hostel(). t7.setText(""). } } } 43 .setText(""). ch.println("SqlException Caught:"+e). new Hostel(). } catch(Exception e) { System.setText("").equals("Clear")) { t6.select(0).dispose().setText("").showMessageDialog(null. JOptionPane." sql Error is occured: "+e). } } } } else if(sst.exit(0). } class WindowEventHandler extends WindowAdapter { public void windowClosing(WindowEvent we) { System. t9.equals("Cancel")) { dispose(). } else if(sst.out. } } public static void main(String s[]) { Fee f=new Fee().

44 .

45 .

Login Form 46 .

Hostel Main Form 47 .

Student Information form 48 .

Student Registration Form 49 .

Student Updating Form 50 .

Student Deletion Form 51 .

Fee Information Form 52 .

Student Installment Pay form 53 .

Room Allotment Form 54 .

Student Attendance Form 55 .

Refund Amount Form 56 .

57 .

Student Report

58

Student Fee Report

59

Student Information Report

60

4. 61 .1 METHODOLOGY USED FOR TESTING System testing is aimed at ensuring that the system works accurately and efficiently before live operation commences. The system should be test data.

which both the formats and validating of the data entered. design and coding. A good test is one.specifically designed to show that the system will operate successfully in all aspects and produce expected result under expected condition. The fields are validated for perfect working of the project. Module Testing Module testing is a process of testing the system module by module. System testing is a critical element of software quality assurance and represents the ultimate review of specifications. Unit testing focuses verification efforts on the smallest unit software design in the module. There are some validation checks for fields also. Testing is a process of executing program with the intention of finding error. Integrated Testing 62 . possible aim of testing is to find faults in the software. The project matrimonial is tested module wise. which has a high probability of finding undiscovered errors. For example validation is done for verifying the data input given by the user. In this step each module is found to working satisfactorily as regard to the expected output from the module. It is very easy to find error and debug the system. The system tests data and the results of processing are maintained throughout the operational life of the system for audit purpose or test any subsequent amendments. This is also known as module testing is carried out during programming stage itself. In other words. what are all the input given and what are all the output produced and whether they are required by testing in this method. Unit Testing In this testing we test each module individually and integrate with the overall system. We would be very clear of the bugs occurred.

Data can be lost across an interface one module can have an adverse effort on the other sub functions. The developed system has run successfully for this sample data.2 SYSTEM IMPLEMENTATION 63 . Validation Testing At the culmination of the block box testing. when combined. interfacing errors have been uncovered and corrected and a final series of software tests that is validation tests begins validation testing can be defined in many ways but a simple definition is that validation succeeds when the software functions in a manner that can be reasonably expected be the customer the project is validated. Integration testing is the systematic testing for constructing the uncover errors within the interface. The need for integrated is to find the over all system performance. The testing was done with sample data. may not produce the desired major functions. software is completely assembled as a package. 4.

extensive user training may be required. Label Boxes are used. It is primarily concerned with user training site preparation and file conversion. in which one has to be cautious because all the errors undertaken during the project will be fruitful only if the software is properly implemented according to the plans made.Implementation is one of the most important tasks in project development. A data Grid. The initial parameters of the Management Kit should be modified as a result of programming efforts. Drop down List Boxes are used for selecting one input from multiple choices. Implementation is the phase. Data controls are used where ever necessary.    Command buttons are used to perform necessary action. The major elements of the implementation plans are as follows: 64 . This project can be implemented in efficient and user-friendly manner by using the controls.    For description. Programming itself is a design work. Depending on the nature of the system. is used to prepare reports. Text Boxes are used. which is one of the feature’s of Java. In order to get inputs.  JDBC is used in order to connect database and queries. programming provides a reality test from the assumptions made by the analyst. The implementation phase is less creative than system design.

     Test plans Training plans Equipment Installation plans Conversation of Installation plans Conversation plans 65 .

with the intention easier 66 . CONCLUSION The project titled as "Hostel Management Information System " been designed with much care.5.

The various Department student information is to be stored and retrieve any time when required. The Hostel Management System works in a similar fashion as that of an Hotel Management System. 67 .and the more complexity involved is presented in a simple and lucid style.

68 .

Michael Shoffner.com – Java Programming  §  Java 2 Black Book – Steven Holzner – Swing  Sun's Java Tutorial -http://java.sun.com/docs/books/tutorial – Swing and Updated Methods 69 .Network Specific Java Programming  Thinking in Java 2nd Edition – BruceEckel – http://www.BruceEckel.BruceEckel.7.sun.com – Java Programming § http://nitric.TATA McGraw HILL  Websites: http://www.com/docs/books/tutorial – Swing and Updated Methods Complete reference java 2 . Derek Hamner – http://nitric.com/jnp/ -.com/jnp/ -. BIBLIOGRAPHY References: Java Network Programming 2nd Edition – Merlin Hughes.Network Specific Java Programming http://java.

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->