COMPUTER APPLICATION PROJECT
CLASS –X
Students are expected to do the project of the as per section given below :
Program must be run on BlueJ (java) only.
Date of submission : (at the time of practical exam date which will be declared later after puja vacation)
PROGRAMS FOR CLASS-X PROJECT
1. Define a class called ParkingLot with the following description:
Instance Variables/Data Members
int vno- to store the vehicle number
int hours – to store the number of hoursthe vehicle is parked in the parking lot.
double bill – to store the bill amount
Member Method
void input () – to input and store the vno and hours.
void calculate() – to compute the parking charge at the rate of Rs. 3 for the first hour or part thereof and Rs.
1.50 for each additional hour or part thereof.
void display ()- to display the details.
Write a main method to create an object of the class and call the above methods.
2. Define a class named BookFair with the following description:
Instance Variables/Data Members
String Bname – stores the name of the book
double price – stores the price of the book
Member Method
BookFair () – default constructor to initialize data members
void Input ()–to input and store the name and the price of the book
void calculate () –to calculate the price after discount, which is calculated based on the following criteria
Price Discount
Less than or equal to Rs. 1000 2% of price
More than Rs. 1000 and
less than or equal to Rs. 3000 10% of price
More than Rs. 3000 15% of price
void display () – to display the name and place of the book after discount.
Write a main method to create an object of the class and call the above member methods.
3. Design a class named 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 initialise 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
Cost Discount (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.
4. WAP to input 15 integer elements in an array and sort them in ascending order using bubble sort
technique.
5. WAP to generate all 4-digit tech numbers. [ A tech number has even has even no. of digits. If the no. is
split in two equal halves then the square of the sum of these halves is equal to the no. itself].
6. WAP to accept a no. and check and display whether it is a Niven no. or not. [A Niven no. is that no.
which is divisible by its sum of digits].
7. WAP to input 40 words in an array. Arrange these names in descending number of letters using the
selection sort technique. Print the sorted array.
8. Using switch statement, write a menu driven program for the following:
1
2 3
4 5 6
7 8 9 10
11 12 13 14 15
Print :
I
I C
I C S
I C S E
9. WAP to accept a word, and check and print whether the word is a palindrome or only a special
word.(a word starting and ending with same letter is called special word.)
10. WAP to print all twin-primes ranging from 1 to 100.
11. WAP to input a pair of numbers and whether it is
prime or a palindrome or not(using user defined functions)
12. WAP to accept a number and check and display whether it is a spy number or not. [A no. is spy if the
sum of its digits equals the product of its digits].
13. WAP to print the transpose form of a (3x3) matrix in 2D array.
14. WAP to print (use nested loop)
*
* * *
* * * * *
16. WAP to input a sentence from the user and display each word with the frequency of vowel characters
present in it.
17. WAP to enter matrix A of (mxn) order and matrix B of (pxq) order and display the product in matrix C if
multiplication is possible, otherwise display the relevant message.
18. WAP to enter n integers in an array and display all palindromic integers present in the array.
19. WAP to enter any sentence and display the frequency of each character.
20. WAP to input 10 numbers and search for a particular number using linear search.
21. WAP to input 10 words and search for a particular word using binary search.
22. WAP to enter any no. and check whether it is a unique no. or not. [If the number does not contain any
duplicate digit, it is called a unique no.]
23. WAP to enter n positive integers from the user and display each integer with its reverse. The program
should terminate if the user enters 0.
24. Create a (3x3) array and find the sum of the lengths of the left and right diagonals separately.
25. WAP that encodes a word into Piglatin. [ for eg; input : London , output : ONDONLAY
Input : Apple , output : APPLEAY]
Instructions for the project file[hard copy spiral binding ]
• Source code i.e. program
• Variable description must be there at the end of the program
• Proper front page with Student’s name, class, section and Roll no.
• Input-output screen shot
• Conclusion.
note: This is 100 marks project.