0% found this document useful (0 votes)
188 views

Annual Computer Project 2024-2025 Computer Applications

Uploaded by

shauryadeep270
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
188 views

Annual Computer Project 2024-2025 Computer Applications

Uploaded by

shauryadeep270
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Annual Project 2024-2025

Computer Applications

Maximum Marks: 100

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

Name of student : ________________________

Class & Section : ________________________

Roll Number : ________________________


Index
Sno Topic Page Numbers Teacher's Signature
1 Acknowledgement

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:

Instance variables / Data members:

String name — To store the name of the customer


long mobno — To store the mobile number of the customer
double cost — To store the cost of the items purchased
double dis — To store the discount amount
double amount — To store the amount to be paid after discount

Member methods:

ShowRoom() — default constructor to initialize data members


void input() — To input customer name, mobile number, cost
void calculate() — To calculate discount on the cost of purchased items,
based on following criteria-
Discount
Cost
(in percentage)

Less than or equal to ₹10000 5%

More than ₹10000 and less than or equal to ₹20000 10%

More than ₹20000 and less than or equal to ₹35000 15%

More than ₹35000 20%

void display() — To display customer name, mobile number, amount to be paid


after discount.

Write a main() method to create an object of the class and call the above member
methods.

2. Define a class called with the following specifications:


Class name: Eshop
Member variables:
String name: name of the item purchased
double price: Price of the item purchased
Member methods:
void accept(): Accept the name and the price of the item using the
methods of Scanner class.
void calculate(): To calculate the net amount to be paid by a customer,
based on the following criteria:

Page - 2
Price Discount

1000 – 25000 5.0%

25001 – 57000 7.5 %

57001 – 100000 10.0%

More than 100000 15.0 %


void display(): To display the name of the item and the net amount to be paid.
Write the main() method to create an object and call the above methods.

3. Design a class with the following specifications:


Class name: Student
Member variables:
name — name of student
age — age of student
mks — marks obtained
stream — stream allocated
(Declare the variables using appropriate data types)
Member methods:
void accept() — Accept name, age and marks using methods of Scanner class.
void allocation() — Allocate the stream as per following criteria:
mks stream

>= 300 Science and Computer

>= 200 and < 300 Commerce and Computer

>= 75 and < 200 Arts and Animation

< 75 Try Again

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.

5. Write a program to input 15 integer elements in an array and sort them in


ascending order using the exchange selection sort technique.

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

9. Define a class to perform binary search on a list of integers inputted in


descending order, 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".

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

(b) Display the following pattern using iteration (looping) statement:

1
12
123
1234
12345

11. Define a class to accept values into a 3 × 3 array and-


a. Print sum of all elements of left diagonal elements
b. Print sum of all elements of right diagonal elements
c. Print sum of all columns separately
Example:
Input: A[ ][ ]={{ 4 ,5, 6}, { 5 ,3, 2}, { 4, 2, 5}};
Output:
Sum of left diagonal elements = 4 + 3 + 5 = 12
Sum of left diagonal elements = 6 + 3 + 4 = 13
Sum of column 1 = 13
Sum of column 2 = 10
Sum of column 3 = 13

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

15. Define a class to overload the method display as follows:

void display( ): To print the following format using nested loop


1
12
123
1234
12345

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

16. Define a class to overload the function print as follows:


void print() - to print the following format
1 1 1 1
2 2 2 2
3 3 3 3
4 4 4 4
5 5 5 5
void print(int n) - To check whether the number is a lead number. A lead
number is the one whose sum of even digits are equal to sum of odd digits.
e.g. 3669
odd digits sum = 3 + 9 = 12
even digits sum = 6 + 6 = 12
3669 is a lead number.

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

You might also like