Manisha Patel Java
Manisha Patel Java
2024-25
Manisha Patel
July 2024 – March 2025
2
DECLARATION
has not formed the basis for the award of any degree, associateship,
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.
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.
Manisha Patel
XI
4
CERTIFICATE
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.
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
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:
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
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:
Foreground [0,0,0]
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:
Text Null
Foreground [0,0,0]
15
CODINGS:
int n;
n = Integer.parseInt(jTextField1.getText());
if(n>0&&n%2==0)
else
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:
Foreground [0,0,0]
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:
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:
Text CONVERT C TO F
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:
6. COMBOBOX Text Kg to g
Background L TO MILL
Editable R TO P
[255,255,255]
FALSE
23
CODINGS:
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:
Foreground [0,0,0]
Text TITLE
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