Academic Sessions
2024-25
MySQL AND JAVA PROGRAMMING
This project aims to design and develop a web-based application using Java and MySQL that
enables efficient data management. The application will provide a user- freindly interface for data
entry,retrieval, and analysis. Java will be used for developing the application’s logic, while mysql
will be used for database management.
1 Guided by: Sir Narendra Rathore
Submitted By: ManishaPatel
INFORMATION TECHNOLOGY PROJECT
All India Senior Secondary Certificate Examination 2024-25
Submitted in partial fulfillment of the requirements for the award of degree of
CLASS 11th SECTION - A
Manisha Patel
July 2024 – March 2025
DEPARTMENT OF INFORMATION TECHNOLOGY
ST. JOHN’S ENGLISH MEDIUM SCHOOL KHARSIA
GUIDED BY: SUBMITTED BY:
SIR NARENDRA RATHORE MANISHA PATEL
(P G T) ROLL NO. 15
2
DECLARATION
I hereby declare that the project entitled “MySQL AND JAVA
PROGRAMMING ” submitted for my original work and the project
has not formed the basis for the award of any degree, associateship,
fellowship or any other similar titles.
Manisha Patel
3
ACKNOWLEDGMENT
I am highly grateful to the Sir Narendra Kumar Rathore HOD of IT, St.
John’s English Medium School Kharsia, Dist – Raigarh (Chhattisgarh),
for providing this opportunity to carry out the Major Project at MySQL
and Java programming.
I would like to expresses my gratitude to other faculty member’s name
of Computer Science for providing academic inputs, guidance &
encouragement throughout this period.
The author would like to express a deep sense of gratitude and thank
Principal of School, without whose permission, wise counsel and able
guidance, it would have not been possible to carry out my project in
this manner.
The help rendered by Mr. Narendra Kumar Rathore Supervisor Fr.
Suresh Toppo for experimentation is greatly acknowledged.
Finally, I express my indebtedness to all who have directly or indirectly
contributed to the successful completion of my major project.
Manisha Patel
XI
4
CERTIFICATE
TO WHOM IT MAY CONCERN
I hereby certify that Manisha Patel, Roll No. 15 of St. John’s English
Medium School Kharsia, Dist. Raigarh (Chhattisgarh), has undergone
Major Project from 01.12.2024 to 12.01.2025 at our organization to
fulfill the requirements for the award of degree of class 11th sec A.
She worked on MySQL and Java programming project during this
period under the supervision of Sir Narendra Rathore. During her
tenure with us we found her sincere and hard working. We wish her a
great success in the future.
Date: 11.01.2025 Mr. Narendra Rathore
Internal Examiner
Fr. Suresh Toppo
External Examiner Principal
5
ABSTRACT
The project covers the very important topic of MySQL and JAVA
PROGRAMMING i.e. DATABASE CONNECTIVITY which gives
us a great knowledge about connection between frontend and
backened. It has many real world applications and usefulness which
makes it important for us to learn.
Here we have covered the topic of GUI APPLICATION which gives
us a great knowledge about connection between frontened and
backened. It has many real world application and usefulness which
makes it important for us to learn.
The project will demonstrate the effectiveness of using JAVA and
MYSQL for developing scalable and secure web-based applications.
The expected outcomes include improved data management, enhanced
user experience, and reduced data redundancy.
Manisha Patel
6
HARDWARE & SOFTWARE
REQUIREMENTS
Device name DESKTOP-3BJ7F1N
Processor Intel(R) Core(TM) i3-8100T CPU @ 3.10GHz 3.10 GHz
Installed RAM 4.00 GB
Device ID 92B2BE56-A233-4249-88DC-3D7C9BD22F2E
Product ID00330-80000-00000-AA874
System type 64-bit operating system, x64-based processor
Pen and touch No pen or touch input is available for this display
Edition Windows 10 Pro
Version 22H2
Installed on 6/17/2024
OS build 19045.5247
ExperienceWindows Feature Experience Pack 1000.19060.1000.0
7
TABLE OF CONTENTS
S.N. Content Page No.
1 RELATIONAL DATABASE MANAGEMENT 9-12
SYSTEM
2 GUI APPLICATION for three digit sum. 13-14
3 GUI APPLICATION whether the number is odd or even. 15-16
4 GUI APPLICATION profit and loss. 17-18
5 GUI APPLICATION to check whether the character is 19-20
vowel or not.
6 GUI APPLICATION to convert temperature from Celsius 21-22
to Fahrenheit and Vice-versa.
7 GUI APPLICATION to convert kilograms into gram, 23-24
liter into milliliter,and rupees into paise.
8 GUI APPLICATION to calculate discount amount. 25-27
9 GUI APPLICATION to calculate gross and net salary. 29-31
8
RELATIONAL DATABASE MANAGEMENT
SYSTEM
LAB EXERCISES:
A) Display the names of all the products in the store.
B) Display the names and unit price of all the products in the store
9
C) Display the names of all the products with unit price less than Rs.20000.00
D) Display details of all the products with unit price in the range 20000 to 30000
E) Display names of all products by the manufacturer “Fit Express”
10
F) Display all rows sorted in descending order of unit price.
G) Add a new row foe product with the details: “P106”, “Vibro Exerciser”,23000,
manufacturer: “Avon Fitness”.
11
H) Change the unit price data of all thr rows by applying a 10% discount reduction
on all the products.
I) Display details of all products with manufacturer name starting with “A”
12
FUNDAMENTALS OF JAVA PROGRAMMING
LAB EXERCISES:
1. Design a GUI application in which the user enters a three digit
number in the text field and on clicking the button the sum of the
digits of the number should be displayed in a label.
BEFORE RUNNING:
COMPONENTS PROPERTIES VALUES
1. JFRAME Defaultcloseoperation EXIT-ON-CLOSE
Title SUM OF DIGITS CALCULATOR
2. JLABEL1 Background [255,255,255]
Font Segoe UI 14 Bold
Foreground [0,0,0]
Text ENTER THREE DIGIT NUMBERS
3. JLABEL2 Text Null
4. JTEXTFIELD1 Text Null
5. JBUTTON1 Text SUM OF DIGIT
13
CODINGS:
int n;
n = Integer.parseInt(jTextField1.getText());
int result = 0;
while(n>0)
{result = result + n %10;
n = n/10;
}
jLabel2.setText(Integer.toString(result));
AFTER RUNNING:
14
2. Design a GUI application to accept a number from the user in a text
field and print using option pane whether it is a positive even number
or not.
BEFORE RUNNING:
COMPONENTS PROPERTIES VALUES
1. JFRAME Title POSITIVE EVEN NUMBER
2. JTEXTFIELD1 Background [255,255,255]
Text Null
Foreground [0,0,0]
3. JLABEL1 Text ENTER NUMBER
4. JBUTTON1 Text EVEN POSITIVE NUMBER OR
NOT
15
CODINGS:
int n;
n = Integer.parseInt(jTextField1.getText());
if(n>0&&n%2==0)
JOptionPane.showMessageDialog(null,”Positive Even Number”);
else
JoptionPane.showMessageDialog(null,”Not Positive Even Number”);
AFTER RUNNING:
16
3. Design a GUI application to accept the cost price and selling price
form the user in two fields then calculate the profit and loss incurred.
BEFORE RUNNING:
COMPONENTS PROPERTIES VALUES
1. JFRAME Title PROFIT/LOSS CALCULATION
2. JLABEL1 Background [255,255,255]
Foreground [0,0,0]
Text SELLING PRICE
3. JLABEL2 Text COST PRICE
4. JBUTTON1 Text CLICK
5. JTEXTFIELD1 Text Null
6. JTEXTFIELD2 Text Null
17
CODINGS:
double c = Double.parseDouble(getText());
double s = Double.parseDouble(getText());
if (c>s)
setText(“There is a loss 0f:”+”Rs”+(c-s));
else
setText(“There is a profit of:”+”Rs”+(s-c));
AFTER RUNNING:
18
4. Design a GUI application to accept a character in a text field and print
in a label if that character is a vowel: a, e, i, o, u. the application should
be case sensitive.
BEFORE RUNNING:
COMPONENTS PROPERTIES VALUES
1. JFRAME Title VOWEL IDENTIFIER
5. JTEXTFIELD1 Background [204,204,204]
Foreground [0,0,0]
Text Null
3. JLABEL1 Text ENTER ALPHABET
4. JLABEL2 Text Null
5. JBUTTON1 Text CLICK
19
CODINGS:
String s = getText();
char ch = s.charAt(0);
switch(ch)
{
case’A’:
case’E’:
case’I’:
case’O’:
case’U’:
case’a’:
case’e’:
case’i’:
case’o’:
case’u’:setText(“It is a Vowel”);
break;
default:setText(“It is not a Vowel”);
AFTER RUNNING:
20
6. Design a GUI application in java to convert temperature from Celsius
to Fahrenheit or vice versa using radio button and two text field.
BEFORE RUNNING:
COMPONENTS PROPERTIES VALUES
1. JFRAME Title TEMPERATURE
CONVERTER
7. JTEXTFIELD1 Background [255,255,255]
Foreground [0,0,0]
Text NULL
8. JLABEL1 Text ENTER TEMPERATURE
Font SEGOE UI 14 BOLD
Foreground [0,0,0]
4. JBUTTON1 Text CLICK HERE
5. JRADIOBUTTON Background [255,255,255]
Font SEGOE UI 14 BOLD
Text CONVERT C TO F
6. JRADIOBUTTON Text CONVERT F TO C
21
CODINGS:
double c,f;
if (rcf.isSelected()==true)
{
c = Double.parseDouble(t1.getText());
f = c*(9/5)+32;
t2.setText(“”+f);
}
else
{
f = Double.parseDouble(t2.getText());
c =(f-32)*5/9;
t1.setText(“”+c);
AFTER RUNNING:
22
9. Design a GUI application in java to convert kilogram into grams, litres
into milliliters, rupees into paisa using combo box and text fields.
BEFORE RUNNING:
COMPONENTS PROPERTIES VALUES
1. JFRAME Defaultcloseoperation EXIT-ON-CLOSE
title UNIT CONVERTER
10. JLABEL1 Background [255,255,255]
Font SEGOE UI 14 BOLD
Foreground [0,0,0]
Text
ENTER UNIT
3. JTEXTFIELD1 Text Null
4. JTEXTFIELD2 Text Null
5. JBUTTON1 Text SUMIT
6. COMBOBOX Text Kg to g
Background L TO MILL
Editable R TO P
[255,255,255]
FALSE
23
CODINGS:
String conversionType = (String)jComboBox1.getSelectedItem();
double inputValue = Double.parseDouble( jTextField1.getText());
double resultValue =0.0;
switch(conversionType){
case “Kilograms to Grams”:
resultValue = inputValue*1000;
break;
case “Litres to Millilitres”:
resultValue = inputValue*1000;
break;
case “Rupees to Paisa”:
resultValue = inputValue*1000;
break
22
}
jTextField2.setText(String.valueOf(resultValue));
AFTER RUNNING:
24
7. A book publishing house decided to go for computerizing. The database
will be maintained at the back end but you have to design from end for the
company. You have to accept book code, title, author, and quantity sold
from the user. The price will be generated depending upon the book code
Net price should be calculated on the basis of the discount given:
1. Book seller-25%
2. School-20%
3. Customer-5%
BEFORE RUNNING:
COMPONENTS PROPERTIES VALUES
1. JFRAME Defaultcloseoperation EXIT-ON-CLOSE
Title BOOK RECORD
2. JLABEL1 Background [255,255,255]
Font SEGOE UI 14 BOLD
Foreground [0,0,0]
Text TITLE
3. JLABEL2 Text AUTHOR
4. JLABEL3 Text QUANTITY
5. JLABEL4 Text BOOK CODE
6. JLABEL5 Text DISCOUNT ON THE BASIS
25
OF CATEGORIES
7. JLABEL6 Text PRICE
8. JLABEL7 Text NET PRICE
9. JLABEL8 Text NULL
10. JBUTTON1 Text CALCULATOR
Background [255,255,255]
11. JRADIO BUTTON Text 101 to customer
Button group BUTTON GROUP1
12. JTEXTFIELD Text Amount
CODINGS:
int x=0;
if(bcode1.isSelected()==true)
x = 1000;
if(bcode2.isSelected()==true)
x = 2000;
if(bcode3.isSelected()==true)
x = 3000;
p.setText(“”+x);
int qty = Integer.parseInt(tq.getText());
int amt = x*qty;
if(dis1.isSelected()==true)
amt = amt –(amt*25/100);
if(dis2.isSelected()==true)
amt = amt – (amt*20/100);
25
26
if(dis3.isSelected()==true)
amt = amt – (amt*5/100);
l.setText(“”+amt);
AFTER RUNNING:
27
CONCLUSION
The MySQL and Java programming project has been a valuable
learning experience, demonstrating the integration of database
management and programming concepts. Through this project, I have
successfully designed and developed a robust and efficient database
management system using MySQL, and a user-friendly interface using
Java.
The MySQL and Java programming project has been enriching
experience ,allowing us to apply theoritecal concepts to real-world
problems. I have gained valuable skills and knowledge, preparing us
for future projects and careers in IT.
I am greatly thankful to Mr. NARENDRA RATHORE for guiding me
in creating the project and I am thereby adhere to your knowledge of
INFORMATION TECHNOLOGY. It was a great time with you Sir
that I will never forget.
Manisha Patel
28