Computer Science Name:-Riya Agarwal

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 23

COMPUTER SCIENCE

Name:- Riya Agarwal

Class:- XII – Science


Roll No. : 11
UID : 6826825

Subject : Practical Workfile-II


INDEX

Sr.No TOPIC

1. To write a program in java to input the first 14 digits of an IMEI Number


and check the last digit of it.
2. To design a class Link which is an entity that can hold a maximum of 100
integers and enables the user to add elements from the rear end and
remove integers from the front end of the entity
3. To design a class Repeat, outlining queue data structure which allows user
to add elements from one end(rear)and remove elements from the other
end(front)according to the given details.
4. To write a program to create square matrix and sort the boundary
elements in descending order, calculate the sum of the boundary
elements and display the original matrix, rearranged matrix and sum of
the boundary elements.
5. To write a program to check whether the integer number entered by the
user is a Smith Number or not. A Smith Number is a composite number
whose sum of digits is equal to the sum of digits of prime factors.
6. To accept a sentence which may be terminated by “.”, “ “,“!”, “?”only.The
words of the sentence are separated by a blank space and are in
uppercase. Write a java program to to find the potential of a word by
adding ASCII value of the alphabets.
7. To design a class Word Pile which is an entity stack that can hold a
maximum of 20 characters. The restriction is that characters can be added
from one end only.

8. To check if six digit format date entered by the user is valid or not and
print in the day, month and year format which is the calendar format.

9. To create a member class with the two classes and print the
salary,name,address,age and specialization of the user.

10. To write a java program to create a password from the name and age
entered by the user according to the given criteria. The password should
be created by first and last character of first name, first digit of age, first
and last character of middle name, second digit of age, and first and last
character of last name.
PROGRAM 1
PROGRAM 1 (Output)
PROGRAM 2
PROGRAM 2 (Output)
PROGRAM 3
PROGRAM 3 (Output)
PROGRAM 4
PROGRAM 4 (Output)
PROGRAM 5
PROGRAM 5 (Output)
PROGRAM 6
PROGRAM 6 (Output)

PROGRAM 7
PROGRAM 7 (Output)
PROGRAM 8
PROGRAM 8 (Output)
PROGRAM 9
Program 9 (Output)
PROGRAM 10
PROGRAM 10 (Output)

You might also like