0% found this document useful (0 votes)
41 views9 pages

Practical File - STD X

The document is a practical file for Computer Applications for Std X at Lodha World School, Palava, for the academic year 2024-2025. It includes a project certificate, acknowledgements, and a table of contents listing various programming tasks and projects to be completed using BLUEJ, covering topics such as classes, methods, and basic Java programming concepts. The tasks range from simple programs like reversing numbers to more complex projects involving classes for parking lots, taximeters, and employee tax calculations.
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)
41 views9 pages

Practical File - STD X

The document is a practical file for Computer Applications for Std X at Lodha World School, Palava, for the academic year 2024-2025. It includes a project certificate, acknowledgements, and a table of contents listing various programming tasks and projects to be completed using BLUEJ, covering topics such as classes, methods, and basic Java programming concepts. The tasks range from simple programs like reversing numbers to more complex projects involving classes for parking lots, taximeters, and employee tax calculations.
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/ 9

LODHA WORLD SCHOOL,

PALAVA
Std X–Computer Applications
Practical File
Academic Year - 2024-2025

Submitted By-

Div –
Roll No. –
LODHA WORLD SCHOOL, PALAVA

(PROJECT CERTIFICATE)

This is to certify that Master/Ms. _______________of


Std. X Div C has completed the Computer Applications
practical file with BLUEJ programming.

Teacher’s Signature Date


Acknowledgement

I’m very thankful to Lodha World


School, Palava, to our respected
Principal, Priya Venkatesh, ma’am, and
to all our Teachers, especially Computer
Teacher Ms. Swati Pawar, who gave me
an opportunity to Learn Java
Programming as an Optional Subject.

Table of Contents
S.No. Program’s details Page No.
31. Write a program in BLUEJ to input a number and display the
new number after reversing the digits of the original number.
The program also displays the absolute difference between the
original number and the reverse number.
For Example:
Original number: 123
Reverse number : 321
Absolute difference = -198
32. Define a class ParkingLot with the following description.
Instance variables/data members :
int vno - to store the vehicle number
int hours - to store the number of hours the vehicle is parked in
the parking lot double bill - to store the bill amount
Methods:

void input() - To input and store vehicle number 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
detail.

Write a main method to create an object of the class and call


the above methods.
33. Define a class taximeter having the following descriptions:
Data member/instance variables:
int taxi_no To store taxi number
String name To store passenger’s name
int Km To store number of kilometers

travelled
Member functions:

void input() Takes the input to store taxi number,


passenger’s name and number of
kilometers travelled

void calculate() To calculate the bill for a customer


according to given conditions.
Kilometers
travelled

Rate/Km
<= 2 kms Rs. 25
Between 2 Kms
and 10 Kms

Rs. 10

Between 10 Km
and 20 Kms

Rs 15
Above 20Kms Rs 20

void display()

public static
void main()

To display the taxi number, passenger’s


name,
number of kilometers travelled and
Bill amount.
Create an object in the main method to call
all the above functions.
34. Define a class ‘Employee’ having the following description:
Data Members
int pan To store personal account number
String name To store name
double taxincome To store annual taxable income
double tax To store tax that is calculated
Member Methods
void input() Stores the pan number, name and

taxable income

void cal() Calculate tax on taxable income


void display() To display the details of an employee
Calculate the tax based on the given conditions and display the

output as per the given format.


Total Annual Taxable Income Tax Rate
Upto ₹ 2,50,000 No tax
From ₹ 2,50,001 to ₹
5,00,000

10% of the income exceeding


₹ 2,50,000

From ₹ 5,00,001 to ₹
10,00,000

₹ 30,000 + 20% of the


income exceeding ₹ 5,00,000
Above ₹ 10,00,000 ₹ 30,000 + 20% of the
income exceeding ₹
10,00,000
35. Define a class ‘Mobike’ having the following description:
Data Members
int bno To store the bike number
int phno To store the phone number
String name To store the name of the customer
int days To store the number of the days the bike

is taken on rent

int charge To calculate and store the rental charges


Member Methods
void input() To input and store the details of customer
void compute() To compute the rental charge
void display() To display the details of customer
Calculate the rent based on the given conditions:
No.of days Rent charges
For first 5 days ₹ 500 per day
For next 4 days ₹ 400 per day
Rest of the days ₹ 200 per day
36. Define a class to overload a function polygon() as follows:
a) void polygon(int n, char ch) – with one integer and one
character type argument to draw a filled square of side n
using the character stored in ch.
void polygon(int x, int y) – with two integer arguments that
draws a filled rectangle of length x and breadth y, using the
symbol ‘@’.
37. Write a class with the name Perimeter using function

overloading that computes the perimeter of a square, rectangle


and a circle.
38. Write a program in Java to find the number of vowels in a
string.
39. Write a program to accept a non-palindrome word and display
the new word after making it a palindrome.
For Example: Input : ICSE
Output : ICSESCI
40. Write a program to find the frequency of each vowel in a string.
For example: Input “COMPUTER APPLICATIONS”
Output :- Frequency of vowel ‘A’ is 2.
Frequency of vowel ‘E’ is 1.
Frequency of vowel ‘I’ is 2.
Frequency of vowel ‘O’ is 2.
Frequency of vowel ‘U’ is 1.
41. Write a program to accept a string and display the new string
after removing all the vowels present in it.
For example : Input “COMPUTER APPLICATIONS”
Output : CMPTER PPLCTNS
42. Write a program in Java to accept two characters and display
the sum and difference of their ASCII value.
43. Write a program to accept an alphabet character and display
the next alphabet accordingly.
For example: Input –‘a’ Output – ‘b’.
44. Write a program in Java to store 20 numbers in a Single
Dimensional Array. Calculate and display the sum of all even
numbers and all odd numbers separately.
45. Write a program using array to accept the year of graduation
from school as an integer value from the user. Using the linear
search technique on the array of integers given below, output
the message “Record exists” if the value input is located in the
array. If not, output the message “Record does not exist”.

N[0] N[1] N[2] N[3] N[4] N[5]


1982 1987 1989 2002 2010 2016
46. Write a program in Java to store 10 integers in an array and
display the maximum and minimum of the elements.
47. Write a program in Java to store 10 integers in an array and
display the sum of all the elements.
48. Write a program in Java using arrays:

a) To store roll no., name and marks in two subjects for 10


students.
b) Calculate the percentage of marks obtained by each
candidate. The maximum marks for each subject is 100.
c) Calculate the grade as per the given criteria.
Percentage Marks Grade
From 80 to 100 A
From 60 to 79 B
From 40 to 59 C
Less than 40 D
49. Write a program to accept name and total marks of 10 students
in two arrays name[] and totalmarks[]. Calculate and print :
i) The average of total marks obtained by the students
Deviation of each student’s total marks with the average
[deviation = totalmarks-average]
50. Write a program to accept a double dimensional array and find
the sum of left and right diagonal.
51. Write a program using array to accept names of 5 students.
Using the Binary Search technique given below, output the
message “Record exists” if the value input is located in the
array. If not, output the message “Record does not exist”.
52. Write a program using array to accept names of 5 students.
Sort the array using bubble sort and selection sort separately.
N[0] N[1] N[2] N[3] N[4] N[5]
Anto Sri Arsh Vishav Reyansh Avi

You might also like