Anda di halaman 1dari 35

RECORD FILE

NAME: ANKUR VERMA


CLASS: XII
BOARD ROLL NO.
CERTIFICATE
This is to certify that Ankur verma has successfully
completed the Project File with the help of Java Programming
Language and My sql under my guidance & supervision.
I am satisfied with there initiative and the efforts
for the completion of Project file as a part of curriculum of
CBSE Class XIIExamination.

Signature
Signature Of
Of Internal Examiner
External Examiner
ACKNOWLEDGEMENT
A project usually falls short of its expectations unless guided
by the right person at the right time. This project would not
have been completed without the direct and indirect support of
"Mrs Mallick" and school authorities. She provided me
with an environment conductive of healthy learning and her
support. This project would not have been such a success
without her contribution. Last but not the least, I would
like to thank my Family, Friends and all those who helped
me in some way or the other in successful completion of the
project.

Ankur verma
INDEX
JAVA ;-
1.
Design a GUI application to accept the cost price and selling price
form the user in two text fields then calculate the profit or loss
incurred.

2.
Create a GUI application for repeatedly doing a task based on the
user input. (Example: To display the multiplication table of a
number input by the user)

3.
Design a GUI application that round off’s a given number up to selected
digits.

4.
Design a GUI application to accept two numbers in a text field and
interchange the values of first number and second number using a temporary
variable.

5. TEXT MANAGER
6.

6.Design a GUI application in JAVA to accept two numbers in a text filed


and interchange the values if first number and second number using
temporary variable.

7.

ROOT CACULATOR

8.

DIGIT CALCULATOR

9.
ELECTRONIC SHOP
10.
ICE CREAM SHOP
11.
HOTEL
12.
BILLING
JAVA ;-
1: Design a GUI application to accept the cost price and
selling price form the user in two text fields then calculate
the profit or loss incurred.

SOURCE CODE:
RUN MODE:

2. Create a GUI application for repeatedly doing a task based on


the user input. (Example: To display the multiplication table of a
number input by the user)
DESGIN MODE
SOURCE CODE:

RUN MODE:
3. Design a GUI application that roundoff’s a given number up to
selected digits.

DESGIN MODE

SOURCE CODE:

RUN MODE:
4 Design a GUI application to accept two numbers in a text field and
interchange the values of first number and second number using a
temporary variable.

DESGIN MODE

SOURCE CODE:
RUN MODE:
5. TEXT MANAGER

DESGIN MODE:

SOURCE CODE:

RUN MODE:
6. Design a GUI application in JAVA to accept two numbers in a text
filed and interchange the values if first number and second number
using temporary variable.

DESGIN MODE

SOURCE CODE:
RUN MODE:

7. ROOT CACULATOR

DESIGN MODE:

SOURCE CODE:
RUN MODE:

8 ELECTRONIC SHOP
9. ICE CREAM SHOP
DESIGN MODE
RUN MODE

SOURCE CODE
10. HOTEL
DESIGN MODE

SOURCE CODE
RUN MODE

MY SQL
TABLE IS CHARITY
Q1-display the first name in lower case
Q2-display all last name of people of Mumbai city in
uppercase

Q3-display person id along with first 3 characters of his/her


name

Q-4display first name concatenated with last name for all the
employees
Q5-display length address along with person id

Q6-display last 2 characters of city and person id

Q7-display last name and first name of people who have “at”
in second or third position in their first name
Q8-display the position of “a” in last name in every row

Q9-display last name and first name of people who have “a”
as the lasT character in their first name

Q10- display person id, last names and contribution with


decimal digits truncated of all persons
2. TABLE STUDENTS

TABLE SPORTS

Q1-Display the lowest and highest classes from table students.


Q2-Display the no. of students in each class in table
students.

Q3-Display the no. of students in cLAss 10.

Q4-Display details of cricket team.

Q5-Display the name and phone no. of the students of class


12 who are play some game.
Q6-Display no of students with each coach.

Q7-Display names and phno of students whose grade is ‘A’


and coach narendra.

1. Table items
CREATING TABLE

INSERTING VALUES
Q1-Display the avg rate of a south Indian item.

Q2-display no of items in each category.

Q3-display total quantity sold for each item


Q4-Display the details of the bill records along with name of
each corresponding item

.Q5-Display the records for item dosa.

Q6-display record for Italian items sold.

HTMT
Q1 TO DISPLAY SALARY IN TABLE
CODE
<html>
<head>
<title>HTML Table</title>
</head>
<body>
<table border = "1" width = "100%">
<tr>
<td>
<table border = "1" width = "100%">
<tr>
<th>Name</th>
<th>Salary</th>
</tr>
<tr>
<td>Ramesh Raman</td>
<td>5000</td>
</tr>
<tr>
<td>Shabbir Hussein</td>
<td>7000</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
RESULT
Q2 CREAT A FORM FOR CAB
CODE
<HTML>
<HEAD>
<TITLE> FORM </TITLE>
</HEAD>
<BODY>
<form >
<p>
<label>Name
<input type="text" name="customer_name" required>
</label>
</p>
<p>
<label>Phone
<input type="tel" name="phone_number">
</label>
</p>
<p>
<label>Email
<input type="email" name="email_address">
</label>
</p>
Which taxi do you require?
<p><label> <input type="radio" name="taxi" required value="car"> Car
</label></p>
<p><label> <input type="radio" name="taxi" required value="van">
Van </label></p>
<p><label> <input type="radio" name="taxi" required value="tuktuk">
Tuk Tuk </label></p>
Extras
<p><label> <input type="checkbox" name="extras" value="baby">
Baby Seat </label></p>
<p><label> <input type="checkbox" name="extras"
value="wheelchair"> Wheelchair Access </label></p>
<p><label> <input type="checkbox" name="extras" value="tip"> Stock
Tip </label></p>
<p>
<label>Pickup Date/Time
<input type="datetime-local" name="pickup_time" required>
</label>
</p>
<p>
<label>Pickup Place
<select id="pickup_place" name="pickup_place">
<option value="" selected="selected">Select One</option>
<option value="office" >Taxi Office</option>
<option value="town_hall" >Town Hall</option>
<option value="telepathy" >We'll Guess!</option>
</select>
</label>
</p>
<p>
<label>Dropoff Place
<input type="text" name="dropoff_place" required
list="destinations">
</label>
<datalist id="destinations">
<option value="Airport">
<option value="Beach">
<option value="Fred Flinstone's House">
</datalist>
</p>
<p>
<label>Special Instructions
<textarea name="comments" maxlength="500"></textarea>
</label>
</p>
<p><button>Submit Booking</button></p>
</form>
</BODY>
</HTML>
RESULT

XML
Q1. Write an xml on type of plants with there
price and botanical name
<?xml version="1.0" ?>
<CATALOG>
<PLANT>
<COMMON>Bloodroot</COMMON>
<BOTANICAL>Sanguinaria canadensis</BOTANICAL>
<ZONE>4</ZONE>
<LIGHT>Mostly Shady</LIGHT>
<PRICE>$2.44</PRICE>
<AVAILABILITY>031599</AVAILABILITY>
</PLANT>
<PLANT>
<COMMON>Columbine</COMMON>
<BOTANICAL>Aquilegia canadensis</BOTANICAL>
<ZONE>3</ZONE>
<LIGHT>Mostly Shady</LIGHT>
<PRICE>$9.37</PRICE>
<AVAILABILITY>030699</AVAILABILITY>
</PLANT>
<PLANT>
<COMMON>Marsh Marigold</COMMON>
<BOTANICAL>Caltha palustris</BOTANICAL>
<ZONE>4</ZONE>
<LIGHT>Mostly Sunny</LIGHT>
<PRICE>$6.81</PRICE>
<AVAILABILITY>051799</AVAILABILITY>
</PLANT>
<PLANT>
<COMMON>Cowslip</COMMON>
<BOTANICAL>Caltha palustris</BOTANICAL>
<ZONE>4</ZONE>
<LIGHT>Mostly Shady</LIGHT>
<PRICE>$9.90</PRICE>
<AVAILABILITY>030699</AVAILABILITY>
</PLANT>
<PLANT>
<COMMON>Dutchman's-Breeches</COMMON>
<BOTANICAL>Dicentra cucullaria</BOTANICAL>
<ZONE>3</ZONE>
<LIGHT>Mostly Shady</LIGHT>
<PRICE>$6.44</PRICE>
<AVAILABILITY>012099</AVAILABILITY>
</PLANT>
<PLANT>
<COMMON>Ginger, Wild</COMMON>
<BOTANICAL>Asarum canadense</BOTANICAL>
<ZONE>3</ZONE>
<LIGHT>Mostly Shady</LIGHT>
<PRICE>$9.03</PRICE>
<AVAILABILITY>041899</AVAILABILITY>
</PLANT>
</CATALOG>

Q2. Write xml on cd catalog


<CATALOG>
<CD>
<TITLE>Empire Burlesque</TITLE>
<ARTIST>Bob Dylan</ARTIST>
<COUNTRY>USA</COUNTRY>
<COMPANY>Columbia</COMPANY>
<PRICE>10.90</PRICE>
<YEAR>1985</YEAR>
</CD>
<CD>
<TITLE>Hide your heart</TITLE>
<ARTIST>Bonnie Tyler</ARTIST>
<COUNTRY>UK</COUNTRY>
<COMPANY>CBS Records</COMPANY>
<PRICE>9.90</PRICE>
<YEAR>1988</YEAR>
</CD>
<CD>
<TITLE>Greatest Hits</TITLE>
<ARTIST>Dolly Parton</ARTIST>
<COUNTRY>USA</COUNTRY>
<COMPANY>RCA</COMPANY>
<PRICE>9.90</PRICE>
<YEAR>1982</YEAR>
</CD>
<CD>
<TITLE>Still got the blues</TITLE>
<ARTIST>Gary Moore</ARTIST>
<COUNTRY>UK</COUNTRY>
<COMPANY>Virgin records</COMPANY>
<PRICE>10.20</PRICE>
<YEAR>1990</YEAR>
</CD>
<CD>
<TITLE>Eros</TITLE>
<ARTIST>Eros Ramazzotti</ARTIST>
<COUNTRY>EU</COUNTRY>
<COMPANY>BMG</COMPANY>
<PRICE>9.90</PRICE>
<YEAR>1997</YEAR>
</CD>
<CATALOG>

Anda mungkin juga menyukai