Computer Application STD
Computer Application STD
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)
int hours – to store the number of hoursthe vehicle is parked in the parking lot.
Member Method
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.
Write a main method to create an object of the class and call the above methods.
Member Method
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
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.
Member Methods
void calculate () – to calculate discount on the cost of purchased items, based on following criteria
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