Computer Project (Part-1) 2025-2026
Computer Project (Part-1) 2025-2026
Instructions:
• Write the following Java programs neatly in a separate long register.
• Please mention your Name, Class, Section and Roll Number on the cover page of notebook clearly.
• Prepare Variable Description Tables (VDT) for at least 10 programs.
• Create a detailed index (either paste this sheet in your notebook or list the program numbers with descriptions).
• Part 1 will be of 50 marks and Part 2 will also be of 50 marks (Total 100 Marks)
• Submission Deadline : 25th June 2025
• Series : write a java program to print calculated value “Res”, after solving following series-
22. 𝑅𝑒𝑠 = (1+2) + (1+3+5) + (1+4+7+10)……..+ (1+6+11+16+21)
23. 𝑅𝑒𝑠 = 1 + 3 + 6 + 10 + 15 + 21 + ⋯ . . +𝑛 𝑡𝑒𝑟𝑚𝑠
1
𝑥 𝑥2 𝑥3 𝑥𝑛
24. 𝑅𝑒𝑠 = 5 + 1! + + + ⋯+
2! 3! 𝑛!
√2 √3 √4 √𝑛
25. 𝑅𝑒𝑠 = − + − ⋯ … … . ±
1! 2! 3! (𝑛−1)!
• Arrays
26. Binary Search: Initialize an array with 10 numbers, arranged in ascending order and search it for a
given value using “Binary Search Technique”
27. Bubble Sort: Input Name and capital of 20 countries and print them in ascending order of their
names (Alphabetically), using “Bubble Sort algorithm” , in following format-
Country Capital
India New Delhi
Nepal Kathmandu
xxxx xxxx
28. Write a java program to input a string and to print all words in Descending order according to total
number of letters present in the words, using-
a. Exchange Selection Sort Algorithm
b. Bubble sort Algorithm
29. Write a java program to input a double dimensional array and print-
• Inputted array in matrix form
• Sum of all Prime elements
• Sum of all elements of left diagonal
• Sum of all elements of right diagonal
30. Slab Based Programs) Write a java class to calculate and print the electricity bill to be paid by a
customer, using following conditions. Assume that the customer pays a monthly rent for meter @
100/KW/month-
No. of units Charge per unit
Upto 100 units ₹ 1.50
For the next 100 units ₹ 2.00
For next 50 units ₹ 2.50
Beyond 250 units ₹ 4.00
31. Slab Based Programs) Write a java class to calculate the income tax by taking monthly salary of an
employee based on the following conditions:
Annual income(Rs) Tax
Upto 130000 No tax
Between 130000 – 200000 15% of the amount exceeding over ₹ 130000
From 200000 – 250000 ₹ 5000 + 20% of the amount exceeding over ₹ 2000000
Above 250000 30% of the amount exceeding ₹ 250000