Professional Documents
Culture Documents
PROJECT TITLE:
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.
Ranipet. Ranipet.
Place : Ranipet
Date :
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 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.
3
Table Of Contents
2 Project Description 6
4 Program 7
5 Snapshots 16
6 Tables Used 19
8 Conclusion 21
Reference 22
4
List Of Figures
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
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.
6
4. PROGRAM
4.1 app1.java
jButton1(Teachers Login):
obj.show();
jButton2(Students Login):
obj.show();
4.2 app2.java
jButton1(Login):
String pwd;
pwd=jPasswordField1.getText();
if(pwd.equals("TGWS"))
7
{
obj.show();
else
4.3 app3.java
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;
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())
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
catch (Exception e)
JOptionPane.showMessageDialog(this, e.getMessage());
jButton2(HOME):
obj.show();
4.4 app4.java
jButton(Login):
10
String pwd;
pwd=jPasswordField1.getText();
if(pwd.equals("TGWS123"))
obj.show();
else
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;
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();
stmt.executeUpdate(query);
catch (Exception e)
JOptionPane.showMessageDialog(this, e.getMessage());
jButton2(Clear):
jTextField1.setText("");
12
jTextField2.setText("");
jTextField3.setText("");
jTextField4.setText("");
jTextField4.setText("");
jTextField5.setText("");
jTextField6.setText("");
jTextField7.setText("");
jTextField8.setText("");
jTextField9.setText("");
jButton3(View):
obj.show();
jButton4(calculate):
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):
obj.show();
4.6 app6.java
jButton1(Click To View):
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";
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):
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
20
8. CONCLUSION
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