Start
Start
For
(Department Elective DE-I)
Advanced Programming Concepts Using Java
Laboratory (CSPE-351)
B.TECH (CSE) 5th Semester
Prepared during By
Name: Paras Garg
Roll No: 22103116
PSO2: Demonstrate contemporary technologies, data analysis and computing skills for effective
interpretation and decision-making in the sustainable development of the society.
DR. B.R. AMBEDKAR NATIONAL INSTITUTE OF TECHNOLOGY JALANDHAR
CSPE-351 Advanced Programming Concepts Using Java Laboratory
B.TECH (CSE) 5th Semester
COURSE OUTCOMES
After the course completion, the student will be able to
1. Make use of members of classes using java API.
2. Demonstrate the ability to employ various types of selection constructs in a Java program.
3. Be able to employ a hierarchy of Java classes to provide a solution to a given set of
requirements.
PSO1
PSO2
PO10
PO11
PO12
PO1
PO2
PO3
PO4
PO5
PO6
PO7
PO8
PO9
CSPE-351
CO 1. H L H H H L
CO 2. H H M L
CO 3. H L M M H L M
LIST OF PRACTICALS
WEEK:1
1. Write a Java program that prints all real solutions to the quadratic equation ax2 + bx + c=0.
Read in a, b, c and use the quadratic formula. If the discriminant b2 – 4ac is negative, display
a message stating that there are no real solutions.
2. The Fibonacci sequence is defined by the following rule. The first two values in the sequence
are 1 and 1. Every subsequent values is the sum of the two values preceding it. Write a java
program that uses both recursive and non-recursive functions to print the nth value in the
fibonacci sequence.
3. Write a Java program that prompts the user for an integer and then prints out all prime
numbers up to that integer.
WEEK:2
1. Write a java program to calculate gross salary & net salary taking the following data.
Input: empno, empname, basic
Process: DA=50%of
basic HRA=25%of
basic CCA=Rs240/-
PF=10%of basic
PT=Rs100/-
2. Write a Java program to sort the elements using bubble sort.
3. Write a Java program to search an element using binary search.
4. Write a Java program multiplication of two 3X3 matrices.
WEEK:3
1. Write a Java program that displays area of different Figures (Rectangle, Square, Triangle)
using the method overloading.
2. Write a Java program that displays that displays the time in different formats in the form of
HH,MM,SS using constructor Overloading. .
3. Write a Java program that counts the number of objects created by using static variable.
WEEK: 4
WEEK:5
1. Write a Java program that reads a file name from the user then displays information
about whether that file exists, file is writable, the type of file and length of the file in
bytes.
2. Write a Java program that reads a file and displays the file on the screen with
a line number before each line.
3. Write a Java program that reads a file and displays the no of lines and words in that file.
4. Write a Java program that reads to copy source seat. File and display on the console
WEEK:6
Office
empno:
empname:
salary:
getvalue()
Teaching Non-Teaching
Designition: Designition:
setvalue() setvalu
2. Write a program to identify the accessibility of a vabiable by means of different access
specifiers with in and outside package.
3. Write a java program to find the details of the students eligible to enroll for the examination (
Students, Department combinedly give the eligibility criteria for the enrollement class) using
interfaces.
WEEK:7
1. Write a java program that implements Array Index out of bound Exception using
built-in-Exception.
2. Write a java program that implements bank trancations using user deined exception .
3. Write a java program to identify the significance of finally block in handling exceptions.
4. Write a java program to generate multiple threads of creating clock pulses.(using runnable
interface)
5. Write a java program to identify the use of synchronized blocks to synchronized methods.
WEEK:8
WEEK:9
1. Write a java program to demonstrate key events by using Delegation event model.
2. Write a java program to implement mouse events like mouse pressed, mouse released and
mouse moved by means of adapter classes.
3. Write a java program to demonstrate window events on frame.
WEEK:10
1. Write an applet that computes the payment of a loan based on the amount of the loan,
interest rate and the number of months.
2. Write an applet to perform the 4 basic arithmetic operations as buttons in a form
accepting two integers in textboxes and display their result.
3. Write a java program to design a registration form for creating a new eMail account.
WEEK:11
1. Write a java program to design the page authenticating user name and password by using
SWING.
2. Write a java program to design a calculator by using Grid Layout.
WEEK:12
1. Write a java program that implements a simple client server application. The client sends
data to server. The server receives the data uses it to produce a result and then sends the result
back to the client then the client displays the result on the console.
Index
S Problem Statement Date Faculty
No. Sign.