Annual Computer Project 2024-2025 Computer Applications
Annual Computer Project 2024-2025 Computer Applications
Computer Applications
Guidelines:
1) Answer all questions in the project.
2) Programs should be coded in the BlueJ environment.
3) Input Methods: Use either parameterized methods or the "Scanner class" for input.
4) Presentation:
a) Write all programs neatly on single-sided ruled punch sheets.
b) Note: Printouts are not permitted.
c) Number all pages and arrange properly.
5) Each program should include:
a) Variable Description Table (VDT): Create a VDT following each program.
b) Include comments to explain logic and parts of the program.
6) Project Cover Page:
a) Paste/Attach provided cover page (Page Number 2 of this PDF file) on top of your
project, ensuring it contains your details.
7) Project File Order: Arrange components in this order:
a) Cover page with your details on top (Page Number 2, provided in this PDF).
b) Index.
c) Acknowledgment.
d) Problem Statement (Page numbers from 4 to 8)
(Either write on punch-sheets or attach print-out)
e) Programs in the given sequence with VDT
8) Submission Deadline:
Submit your completed project by November 10, 2024
9) File Wrapping Colors by Class:
a) XB, XD, XF, XJ and XK : Black wrapping.
b) XC, XE, XG, XH and XI : Red wrapping
Session : 2024-2025
PROJECT
Computer Applications
2 Index
3 Program Number - 1
4 Program Number - 2
5 Program Number - 3
6 Program Number - 4
7 Program Number - 5
8 Program Number - 6
9 Program Number - 7
10 Program Number - 8
11 Program Number - 9
12 Program Number - 10
13 Program Number - 11
14 Program Number - 12
15 Program Number - 13
16 Program Number - 14
17 Program Number - 15
18 Program Number - 16
19 Program Number - 17
20 Program Number - 18
21 Program Number - 19
22 Program Number - 20
23 Notebook
24 The Second Comparative Question Paper
25 Specimen Paper
26 Worksheets
Page - 1
Problem Statements
1. Design a class name ShowRoom with the following description:
Member methods:
Write a main() method to create an object of the class and call the above member
methods.
Page - 2
Price Discount
void print() – Display student name, age, mks and stream allocated.
Call all the above methods in main() method using an object.
4. Define a class to accept 10 characters from a user. Using bubble sort technique
arrange them in ascending order. Display the sorted array and original array.
6. Define a class to accept 10 characters from a user. Using bubble sort technique
arrange them in descending order. Display the sorted array and original array.
7. Define a class to accept values into an array of double data type of size 20.
Accept a double value from user and search in the array using linear search
method. If value is found display message "Found" with its position where it is
present in the array. Otherwise display message "not found".
Page - 3
8. Define a class to perform binary search on a list of integers given below, to
search for an element input by the user, if it is found display the element along
with its position, otherwise display the message "Search element not found".
2, 5, 7, 10, 15, 20, 29, 30, 46, 50
10. Using the switch-case statement, write a menu driven program to do the
following:
(a) To generate and print Letters from A to Z and their Unicode
Letters Unicode
A 65
B 66
. .
. .
Z 90
1
12
123
1234
12345
12. Define a class to accept a string and convert it into uppercase. Count and
display the number of vowels in it.
Input: robotics
Output: ROBOTICS
Number of vowels: 3
Page - 4
13. Define a class to accept values into a 3 × 3 array and check if it is a special
array. An array is a special array if the sum of the even elements = sum of the
odd elements.
Example:
A[ ][ ]={{ 4 ,5, 6}, { 5 ,3, 2}, { 4, 2, 5}};
Sum of even elements = 4 + 6 + 2 + 4 + 2 = 18
Sum of odd elements = 5 + 5 + 3 + 5 = 18
14. Define a class to accept a 3 digit number and check whether it is a duck
number or not.
Note: A number is a duck number if it has zero in it.
Example 1:
Input: 2083
Output: Invalid
Example 2:
Input: 103
Output: Duck number
void display(int n): To print the square root of each digit of the given number.
Example:
n = 4329
Output – 3.0
1.414213562
1.732050808
2.0
Page - 5
17. Design a class to overload a function series( ) as follows:
(a) void series (int x, int n) – To display the sum of the series given below:
x1 + x2 + x3 + .......... xn terms
(b) void series (int p) – To display the following series:
0, 7, 26, 63 .......... p terms
(c) void series () – To display the sum of the series given below:
1/2 + 1/3 + 1/4 + .......... 1/10
18. Define a class to accept a String and print the number of digits, alphabets and
special characters in the string.
Example:
S = "KAPILDEV@83"
Output:
Number of digits – 2
Number of Alphabets – 8
Number of Special characters – 1
19. Define a class to accept a string, and print the characters with the uppercase
and lowercase reversed, but all the other characters should remain the same
as before.
EXAMPLE:
INPUT : WelCoMe_2022
OUTPUT : wELcOmE_2022
20. Write a program to input a sentence and convert it into uppercase and
count and display the total number of words starting with a letter 'A'.
Example:
Sample Input: ADVANCEMENT AND APPLICATION OF INFORMATION TECHNOLOGY ARE
EVER CHANGING.
Sample Output: Total number of words starting with letter 'A' = 4
Page - 6