Programs for Holiday Homework
10 Java programs Computer Applications Class 10
Note:
Write all the 10 programs in A4 size interleaf pages.
Type programs on PC and implement their outputs.
Make a file and arrange accordingly
1) FrontPage
2) Acknowledgement
3) Index of programs
4) Program code
5) Programs output
6) Bibliography
7) Remarks
Make a separate file to explain programs with the help of proper comments and VD table
1. (a) Write a program to search a number from the given list of elements using Linear search technique.
(b) Write a program to search a number from the given list of elements using Binary search technique.
2. (a) Write a program to sort the given list of number of elements using Bubble sort technique.
(b) Write a program to sort the given list of number of elements using Selection sort
technique
3. Write a program to print a 2D array in the form of matrix and check whether it is symmetric
or not. ( A matrix is said to be s ymmetric if it is having equals to its transpose)
4. Write a program to print the following
a. diagonal elements b. lower triangular
c. upper triangular d. boundary elements
e. non. boundary elements of a square matrix
5. Write a program to check whether a number entered by user is Palindrome or not.
6. Write a program to check whether a number entered by user is Armstrong or not.
7. Write a program to print following pattern using nested loops
a. Square 1 2 3 4 5 b. Rows 11111 c. Stars *****
12345 22222 *****
12345 33333 *****
12345 44444 *****
12345 55555 *****
8. Write a program to display the sum of following series
1/L1 + 1/L2+1/L3…….1/Ln
9. Write a program to display the sum of two arrays entered by the user.
10. Write a program to display the names of the day using switch-case corresponding to the day number
entered to the day number entered by user.