CA Programs 10 Final
CA Programs 10 Final
PALAVA
Std X – Computer Applications Practical
File
Academic Year - 2022-2023
Submitted By-
Student’s Name
Unique Id -
LODHA WORLD SCHOOL, PALAVA
(PROJECT CERTIFICATE)
___________________
ACKNOWLEDGEMENT
I would like to express my special gratitude to my
Computer Applications Teacher Mrs. Sagoreeka
Pandey for helping me complete this project and as
well as our Principal madam Mrs. Aditi Banerji for
this project.
Thanking You,
Sujal Mehra
----------------------------------------------------------------------
----------------------------------------------------------------------
----------------------------------------
Table of Contents
S.No. Program’s details Page No.
1. Write a program to display “Welcome to the world of Java”.
12. Write a program to input a number and display the following ->
a) Logarithm of the entered number
b) Square root of the entered number
c) Cube root of the entered number
d) Round off the entered number
e) Absolute value of the given number
13. Write a program to input three angles of a triangle and check whether
a triangle is possible or not. If possible then check whether it is an
acute-angled triangle, right-angled or obtuse-angled triangle,
otherwise, display “Triangle is not possible”.
14. Write a program to input two unequal positive numbers and check
whether they are perfect square numbers or not. If the user enters a
negative number then the program displays the message “Square root
of a negative number can’t be determined.”
15. Write a program to accept a number and check whether the number is
divisible by 3 as well as 5. Otherwise, decide
a) If the number is divisible by 3 and not by 5.
b) If the number is divisible by 3 and not by 5.
c) If the number is neither divisible by 3 nor by 5.
16. A Pre-Paid taxi charges from the passenger as per the tariff given
below:
Distance Rate
Up to 5 km ₹ 100
Up to ₹ 1,00,000 5% 2%
Write a program to input name of the policy holder, the sum assured
and first annual premium. Calculate the discount of the policy holder
and the commission of the agent. The program displays all the details
as:
Name of the policy holder :
Sum assured :
Premium :
Discount on the first premium :
Commission of the agent :
18. The equivalent resistance of series and parallel connections of two
resistances are given by the formula:
(a) R1 = r1 + r2 (Series)
(b) R2 = (r1 * r2) / (r1 + r2) (Parallel)
Using a switch case statement, write a program to enter the value of
r1 and r2. Calculate and display the equivalent resistances
accordingly.
19. Write a program to print the multiplication table of 12.
20. Write a program to input a number and count the number of digits.
The program further check whether it contains odd number of digit or
even.
21. Write a program to input cost price and selling price of an article. If
the selling price is more than selling price than calculate the profit or
profit percentage otherwise calculate loss and loss percentage.
22. Write a menu driven program to accept a number from the user
whether it is a palindrome number or a perfect number.
23. Write a program in java to find the sum of the given series:
a) S = a2 + a2/2 + a2/3 + a2/4 + a2/5
b) 0+ 7 + 26 + 63
c) S = 1+1/2! + 1/3! + ¼! + 1/5!
24. Using Switch statement, write a menu driven program for the
following:
i. To find and display the sum of the series given below:
S= x1 – x2 + x3 - x4 + x5 -x6 + …….. -x20
ii. To display the following series:
1, 11, 111, 1111, 11111,..
25. Write a program to input a number and check whether it is a ‘Spy
number’ or not
26. Write a program in BLUEJ to find the factorial of a number.
27. Write a program to find the sum of the following
S = 1! + 2! + 3! + 4!
Calculate the tax based on the given conditions and display the output
as per the given format.
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
42. 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.
b) void polygon(int x, int y) – with two integer arguments that
draws a filled rectangle of length x and breadth y, using the
symbol ‘@’.
43. Write a class with the name Perimeter using function overloading that
computes the perimeter of a square, rectangle and a circle.
44. Write a program in Java to find the number of vowels in a string.
For example: Input is “COMPUTER APPLICATIONS”
Output is :- Number of vowels in the given string is 8.
45. Write a program to accept a non-palindrome word and display the
new word after making it a palindrome.
For Example: Input : ICSE
Output : ICSEESCI
46. 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.
47. 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
48. Write a program in Java to accept two characters and display the sum
and difference of their ASCII value.
49. Write a program to accept an alphabet character and display the next
alphabet accordingly.
For example: Input –‘a’ Output – ‘b’.
*************
– – -
2) class p2
{
public static void main()
{
int a=50,b=20;
int Sum= a+b;
int Sub= a-b;
double Multi= a*b;
double Divide= a/b;
System.out.println(Sum);
System.out.println(Sub);
System.out.println(Multi);
System.out.println(Divide);
}
}
Variable Type Description
3) public class p3
{
public static void main(String args[])
{
int r=7;
double Area= 3.14*r*r;
System.out.println("Area="+Area);
}
}
4) public class p4
{
public static void main()
{
int length=6;
int breadth=8;
double area=(length*breadth);
double perimeter=2*(length+breadth);
System.out.println("Area = "+area);
System.out.println("Perimeter = "+perimeter);
}
}
5) import java.util.Scanner;
public class p5
{
public static void main()
{
Scanner sc = new Scanner(System.in);
System.out.println("Enter the side of the square");
double side =sc.nextDouble();
double perimeter =4*side;
double diagonal =side*Math.sqrt(2);
System.out.println("Perimeter of the square : "+perimeter);
System.out.println("Length of the diagonal : "+diagonal);
}
}
7) public class p7
{
public static void main()
{
double P=3000;
double R=5;
double T=2;
double SI=(P*R*T)/100;
double A=P+SI;
System.out.println("Simple Interest = "+SI);
System.out.println("Amount = "+A);
}
}
P Double Principal
8) public class p8
{
public static void main(double F)
{
double TC =(F-32)*5/9;
System.out.println("Value of Fahrenheit in Celsius = "+TC);
}
}
F Double Fahrenheit
TC Double Celsius
9) class p9
{
static void find()
{
int ndays=365;
int year, week, days;
int dweek = 7;
year = ndays / 365;
week = (ndays/dweek);
days = ndays/1;
System.out.println("years = " + year);
System.out.println("weeks = " + week);
System.out.println("days = " + days);
}
}
p Double Profit
if (sum == product)
System.out.println("It is Spy Number");
else
System.out.println("It is not Spy Number");
}
}
Km Integer No of Km
[{(+====Programs====+)}]
Bibliography-
★ ICSE IX COMPUTER APPLICATIONS BOOK
★ UNDERSTANDING ICSE COMPUTER APPLICATIONS with BlueJ->Class X
★ Knowledge Boat
★ Javatpoint
★ GeeksforGeeks
/
*______________________THANK___________________________
________________________YOU_________________________*/ ;