0% found this document useful (0 votes)
18 views5 pages

Advanced Java Programming Lab Report

ok

Uploaded by

sanishaprojects0
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views5 pages

Advanced Java Programming Lab Report

ok

Uploaded by

sanishaprojects0
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Tribhuvan University Faculty of Humanities and Social Science

LAB REPORT ON

CACS354 Advanced Java Programming

Submitted to

Department of Computer Application

Sungava College

In partial fulfillment of the requirements for the Bachelors in Computer Application

Submitted by

Name:

Registration no:

Batch: 2079

…………………… ……………………
Soba Raj Paudel External Examineer
Internal Examineer
Index
[Link] Practical Date Signature
1 Write a program to display a login form containing user id, 2082-06-02
password, account type and OK button. Account type must
be admin or user.
2 Write a program with three text boxes First Number, 2082-06-05
Second Number, and Result and Four buttons add, subtract,
multiply and divide. Handle the events to perform the
required operation and display result.
3 Write a program to display two dimensional objects in Java. 2082-06-22

4 Write a program to display following form 2082-06-23

5 Write a GUI application to find sum and difference of two 2082-06-24


integer numbers. Use two text fields for input and third text
field for output. Your program should display sum if user
presses the mouse and difference if the user releases the
mouse.
6 Write a GUI application to find area and circumference of a 2082-06-30
circle. Use text field for input and output. Your program
should display area if user presses the mouse and
Circumference if the user releases the mouse.
7 Write a program to create a GUI application in Java that 2082-06-31
identifies the smaller and greater number between two input
numbers taken through two text fields and displays the result
in a label. If the user presses the mouse it should display the
smaller number and if the user releases the mouse it should
display the greater number.
8 Write a program to prepare a form containing fields 2082-07-13
employee id, name, and salary with buttons insert, update,
delete and search. And perform the operations as indicated
by button names.
9 Write a program to insert three records into a table Item 2082-07-14
which is in the database shop and contains the columns
ItemID, Name, UnitPrice, Units and ExpiryDate.
10 Write a program to display the records from the table 2082-07-20
Students who have got distinction and have a major subject
Data science. Assume that the Student table is in the database
College and contains the columns Rollno, Name, Level,
Division and Major.
11 Write a program to create a GUI form that takes data about a 2082-07-21
customer including cid, name, address, email and age and
insert these data into the Customer table of the Shop
database.
12 Create a servlet that computes and displays factorial of an 2082-07-27
input number entered from a page when the button from that
page is pressed by the user.
13 Write a servlet program that takes three numbers from an 2082-07-28
HTML page and computes the sum of natural numbers upto
the greatest number among three numbers.
14 Create an application where an HTML file displays a form 2082-08-04
containing field ISBN, Book Title, Author and when we click
on save button it must save records in database.
15 Create a servlet application that takes student’s information 2082-08-05
including their roll number, name, address and level and
store these information in the database.
16 Write a program to store and read cookies by using servlet. 2082-08-11

17 Write a JSP script that reads value from a textbox and 2082-08-12
identifies whether it is odd or even.
18 Write a JSP script that contains three textboxes to input three 2082-08-19
numbers and a button. It should display the greatest number
among three numbers when the button is clicked.
19 Create a JSP page that verifies the username and password 2082-08-24
entered from an HTML file and if the username and password
are correct it displays greetings message. Otherwise redirects
to register page.
20 Write a JSP script for enabling and disabling session. 2082-08-25

21 Write a client/server application using RMI to find product 2082-08-26


of two numbers.
22 Write server and client program by using RMI such that the 2082-09-03
program finds factorial of n.
23 Write a client-server application in RMI to find the selling 2082-09-04
price of an item with cost price RS. 5000 after a discount of
RS. 50.
24 Write a client and server program to accept three numbers 2082-09-06
and display the greatest one.
LAB Task
1. Write a program to display a login form containing user id, password, account type
and OK button. Account type must be admin or user.
2. Write a program with three text boxes First Number, Second Number, and Result and
Four buttons add, subtract, multiply and divide. Handle the events to perform the
required operation and display result.
3. Write a program to display two dimensional objects in Java.
4. Write a program to display following form

5. Write a GUI application to find sum and difference of two integer numbers. Use two
text fields for input and third text field for output. Your program should display sum if
user presses the mouse and difference if the user releases the mouse.
6. Write a GUI application to find area and circumference of a circle. Use text field for
input and output. Your program should display area if user presses the mouse and
Circumference if the user releases the mouse.
7. Write a program to create a GUI application in Java that identifies the smaller and
greater number between two input numbers taken through two text fields and displays
the result in a label. If the user presses the mouse it should display the smaller number
and if the user releases the mouse it should display the greater number.
8. Write a program to prepare a form containing fields employee id, name, and salary
with buttons insert, update, delete and search. And perform the operations as indicated
by button names.
9. Write a program to insert three records into a table Item which is in the database shop
and contains the columns ItemID, Name, UnitPrice, Units and ExpiryDate.
10. Write a program to display the records from the table Students who have got
distinction and have a major subject Data science. Assume that the Student table is in
the database College and contains the columns Rollno, Name, Level, Division and
Major.
11. Write a program to create a GUI form that takes data about a customer including cid,
name, address, email and age and insert these data into the Customer table of the Shop
database.
12. Create a servlet that computes and displays factorial of an input number entered from
a page when the button from that page is pressed by the user.
13. Write a servlet program that takes three numbers from an HTML page and computes
the sum of natural numbers upto the greatest number among three numbers.
14. Create an application where an HTML file displays a form containing field ISBN,
Book Title, Author and when we click on save button it must save records in
database.
15. Create a servlet application that takes student’s information including their roll
number, name, address and level and store these information in the database.
16. Write a program to store and read cookies by using servlet.
17. Write a JSP script that reads value from a textbox and identifies whether it is odd or
even.
18. Write a JSP script that contains three textboxes to input three numbers and a button. It
should display the greatest number among three numbers when the button is clicked.
19. Create a JSP page that verifies the username and password entered from an HTML
file and if the username and password are correct it displays greetings message.
Otherwise redirects to register page.
20. Write a JSP script for enabling and disabling session.
21. Write a client/server application using RMI to find product of two numbers.
22. Write server and client program by using RMI such that the program finds factorial of
n.
23. Write a client-server application in RMI to find the selling price of an item with cost
price RS. 5000 after a discount of RS. 50.
24. Write a client and server program to accept three numbers and display the greatest
one.

You might also like