Sei sulla pagina 1di 22

THE GEEKAY WORLD SCHOOL

Academic Session 2017 2018

INFORMATICS PRACTICES PROJECT REPORT

PROJECT TITLE:

TGWS BOARD RESULTS

SUBMITTED BY: GUIDED BY:


N.GANESH M/2/18/ 46121/0004 MS.VAISHNAVI M.E,
MALINI.M M/2/18/ 46121/0010 IT FACLITATOR
MONISHA RAVI M/2/18/ 46121/0011
SANDHYA M/2/18/ 46121/0013

1
BONAFIDE CERTIFICATE

Certified that this project report titled TGWS BOARD RESULTS is the bonafide work of N.GANESH
M/2/18/ 46121/0004 , MALINI.M M/2/18/ 46121/0010 , MONISHA RAVI M/2/18/ 46121/0011,
SANDHYA M/2/18/ 46121/0013 , who carried out the research under my supervision. Certified further, that to
the best of my knowledge the work reported herein does not form part of any other project report.

SIGNATURE OF THE PRINCIPAL SIGNATURE OF THE CO-ORDINATOR

Dr. Praseedha Sreekumar M.A,B.Ed,Ph.d Ms.Mujeeba M.com, M.A., M.Phil, B.Ed,

The GeeKay World School, The GeeKay World School,

Ranipet. Ranipet.

Place : Ranipet

Date :

INTERNAL EXAMINER EXTERNAL EXAMINER

2
ACKNOWLEDGEMENT

I first offer my thanks to the almighty who has given me the strength and good health during the course

of this project.

I express my profound gratefulness to my Principal Dr.Praseedha Sreekumar and my Co-ordinator

Ms. Mujeeba, The GeeKay World School.

I am also thankful to Miss. G.Vaishnavi, IT Facilitator, for her continual support and assistance.

I also thank all my faculty members who were instrumental in the completion of this project.

N.GANESH M/2/18/ 46121/0004 ,

MALINI.M M/2/18/ 46121/0010 ,

MONISHA RAVI M/2/18/ 46121/0011,

SANDHYA M/2/18/ 46121/0013.

3
Table Of Contents

S.No Title Page No


1 Introduction 5

2 Project Description 6

3 Hardware and Software Specifications 6

4 Program 7

5 Snapshots 16

6 Tables Used 19

7 Viewing Table Data 20

8 Conclusion 21

Reference 22

4
List Of Figures

Fig No Title Page No

5.1 app1.java 16

5.2 app2.java 16

5.3 app3.java 17

5.4 app4.java 17

5.5 app5.java 18

5.6 app6.java 18

6.1 Table 1: result 19

7.1 Viewing data of result table: 20

1. INTRODUCTION

The project titled TGWS Board Results is system for viewing results of the students. This
project is designed and coded in NetBeans 8.0.2 and database management is handled by
MySQL 5.0. This software mainly focuses on the following,
I. Uploading results of the students by the teachers
II. Viewing the result by the students.

5
2. PROJECT DESCRIPTION

The goal of this project is to make the works of the teachers easier by uploading students marks
in the database so that those data will be retrieved when the students are in need of.

3. HARDWARE AND SOFTWARE SPECIFICATIONS

3.1 SOFTWARE USED:


Operating System : Windows 10
Front End : NetBeans 8.0.2
Back End : MySQL 5.7
Language : JDK 1.6

3.2 HARDWARE USED:


Hard Disk : 1TB
RAM : 8GB and above
Processor : AMD A8

6
4. PROGRAM
4.1 app1.java

jButton1(Teachers Login):

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {

app4 obj=new app4();

obj.show();

jButton2(Students Login):

private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {

app2 obj=new app2();

obj.show();

4.2 app2.java

jButton1(Login):

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {

String pwd;

pwd=jPasswordField1.getText();

if(pwd.equals("TGWS"))

7
{

app3 obj=new app3();

obj.show();

else

JOptionPane.showMessageDialog(null,"SORRY INVALID PASSWORD!!!!!!!!");

4.3 app3.java

jButton1(Click To View Your Result):

import java.sql.DriverManager;

import java.sql.Connection;

import java.sql.ResultSet;

import java.sql.Statement;

import javax.swing.JOptionPane;

import javax.swing.table.DefaultTableModel;

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {

String rno=jTextField1.getText();

jTextField2.setEditable(false);

jTextField3.setEditable(false);

jTextField4.setEditable(false);

jTextField5.setEditable(false);

jTextField6.setEditable(false);

8
jTextField7.setEditable(false);

jTextField8.setEditable(false);

jTextField9.setEditable(false);

if(rno.isEmpty())

JOptionPane.showMessageDialog(null, "Enter RegiseterNumber");

try

Class.forName("java.sql.DriverManager");

Connection con=
(Connection)DriverManager.getConnection("jdbc:mysql://localhost:3306/project","root","school");

Statement stmt=(Statement)con.createStatement();

String query="select
name,english_core,physics,chemistry,mathematics,informatics_partices,total,avgerage from result where
rno='"+rno+"';";

ResultSet rs=stmt.executeQuery(query);

if(rs.next())

String Name=rs.getString("Name");

String english_core=rs.getString("english_core");

String physics=rs.getString("physics");

String chemistry=rs.getString("chemistry");

String mathematics=rs.getString("mathematics");

String informatics_partices=rs.getString("informatics_partices");

String total=rs.getString("total");

String avgerage=rs.getString("avgerage");

9
jTextField2.setText(Name);

jTextField3.setText(english_core);

jTextField4.setText(physics);

jTextField5.setText(chemistry);

jTextField6.setText(mathematics);

jTextField7.setText(informatics_partices);

jTextField8.setText(total);

jTextField9.setText(avgerage);

else

JOptionPane.showMessageDialog(this, "Sorry, Invalid Register Number!!!!!");

catch (Exception e)

JOptionPane.showMessageDialog(this, e.getMessage());

jButton2(HOME):

private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {

app1 obj=new app1();

obj.show();

4.4 app4.java

jButton(Login):

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {

10
String pwd;

pwd=jPasswordField1.getText();

if(pwd.equals("TGWS123"))

app5 obj=new app5();

obj.show();

else

JOptionPane.showMessageDialog(null,"SORRY INVALID PASSWORD!!!!!!!!");

4.5 app5.java

jButton1(Upload Data):

import java.sql.DriverManager;

import java.sql.Connection;

import java.sql.ResultSet;

import java.sql.Statement;

import javax.swing.JOptionPane;

import javax.swing.table.DefaultTableModel;

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {

String rno=jTextField1.getText();

String name=jTextField2.getText();

String english_core=jTextField3.getText();

11
String physics=jTextField4.getText();

String chemistry=jTextField5.getText();

String mathematics=jTextField6.getText();

String informatics_partices=jTextField7.getText();

String total=jTextField8.getText();

String avgerage=jTextField9.getText();

try

Class.forName("java.sql.DriverManager");

Connection
con=(Connection)DriverManager.getConnection("jdbc:mysql://localhost:3306/project","root","school");

Statement stmt=(Statement)con.createStatement();

String query="insert into result values


('"+rno+"','"+name+"','"+english_core+"','"+physics+"','"+chemistry+"','"+mathematics+"','"+informatics
_partices+"','"+total+"','"+avgerage+"');";

stmt.executeUpdate(query);

JOptionPane.showMessageDialog(null,"Successfully added !!!");

catch (Exception e)

JOptionPane.showMessageDialog(this, e.getMessage());

jButton2(Clear):

private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {

jTextField1.setText("");

12
jTextField2.setText("");

jTextField3.setText("");

jTextField4.setText("");

jTextField4.setText("");

jTextField5.setText("");

jTextField6.setText("");

jTextField7.setText("");

jTextField8.setText("");

jTextField9.setText("");

jButton3(View):

private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {

app6 obj=new app6();

obj.show();

jButton4(calculate):

private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {

float eng,phy,chem,bio,ip,total,avg;

eng=Float.parseFloat(jTextField3.getText());

phy=Float.parseFloat(jTextField4.getText());

chem=Float.parseFloat(jTextField5.getText());

bio=Float.parseFloat(jTextField6.getText());

ip=Float.parseFloat(jTextField7.getText());

total=eng+phy+chem+bio+ip;

avg=(eng+phy+chem+bio+ip)/5;

13
jTextField8.setText(String.valueOf(total));

jTextField9.setText(String.valueOf(avg));

jButton5(HOME):

private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {

app1 obj=new app1();

obj.show();

4.6 app6.java

jButton1(Click To View):

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {

DefaultTableModel model=(DefaultTableModel)

jTable1.getModel();

try

Class.forName("java.sql.DriverManager");

Connection
con=(Connection)DriverManager.getConnection("jdbc:mysql://localhost:3306/project","root","school");

Statement stmt=(Statement)con.createStatement();

String tname;

tname="result";

String query = "select * from "+tname+";";

ResultSet rs=stmt.executeQuery(query);

while(rs.next())

14
{

String rno=rs.getString("rno");

String name=rs.getString("name");

String english=rs.getString("english_core");

String physics=rs.getString("physics");

String chemistry=rs.getString("chemistry");

String mathematics=rs.getString("mathematics");

String ip=rs.getString("informatics_Partices");

String total=rs.getString("total");

String avg=rs.getString("avgerage");

model.addRow(new Object[]{rno,name,english,physics,chemistry,mathematics,ip,total,avg});

catch(Exception e)

JOptionPane.showMessageDialog(this,e.getMessage());

jButton2(HOME):

private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {

app1 obj=new app1();

obj.show();

15
5. SNAPSHOTS
5.1 app1.java

16
5.2 app2.java

5.3 app3.java

17
5.4 app4.java

18
5.5 app5.java

5.6 app6.java

6. TABLES USED
6.1 Table 1: result
19
7. VIEWING TABLE DATA

7.1 Viewing data of result table:

20
8. CONCLUSION

Thus, results of the students are uploaded and viewed successfully.

21
REFERENCES:

1) https://www.google.co.in/search?
q=tn+board+results&source=lnms&tbm=isch&sa=X&ved=0ahUKEwiSs6Py_LHQAhW
Lp48KHRwCBIYQ_AUICSgC
2) Informatics Practices Text Book (Grade 12)

22