Practical Progeam List - Grade Ix - CA-2022-23

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

TREE HOUSE HIGH SCHOOL, KARVENAGAR, PUNE

PROJECT ON COMPUTER APPLICATIONS : 2022 – 23

SUBJECT: COMPUTER APPLICATIONS


GRADE IX Name:_____________________

Instruction for Project preparation:


• Students have to prepare Computer Application Project in the form of file/folder.
• Project includes 12 java programs with respective outputs.
• Programs must be handwritten with the sample output.
• Printout of program and output can be added(Optional).

List of the programs is as follows:


1. Write a program to convert the temperature into degree Celsius and display the output. The
normal temperature of human body is 98.6°F convert it into Celsius.
(Formula based Programs + Operators in Java)
Hint: c / 5 = f - 32 / 9
2. Write a program in Java to calculate and display the radius of a circle by taking area as an
input. (Mathematical Library Methods)
Hint: Area = (22/7) * r2; where r = radius of a circle
Hence the radius can be calculated as: r = √((7 * area) / 22)
3. Write a program by using class 'Employee' to accept Basic Pay of an employee.
Calculate the allowances/deductions as given below.
Allowance / Deduction Rate
Dearness Allowance (DA) 30% of Basic Pay
House Rent Allowance (HRA) 15% of Basic Pay
Provident Fund (PF) 12.5% of Basic Pay
Finally, find and print the Gross and Net pay.
Gross Pay = Basic Pay + Dearness Allowance + House Rent Allowance
( Operators and Input In Java)
4. Write a program to input three unequal numbers. Display the greatest and the smallest number.
(if-else or ternary operator in java)
Sample Input: 28, 98, 56
Sample Output: Greatest Number: 98
Smallest Number: 28
5. Write a program to accept a number and check whether the number is divisible by 3 and 5.
(if-else-if ladder)
Otherwise, decide:
(a) Is the number divisible by 3 and not by 5?
(b) Is the number divisible by 5 and not by 3?
(c) Is the number neither divisible by 3 nor by 5?
6. The equivalent resistance of series and parallel connections of two resistances are given by the
formula and displays the message accordingly.
(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.
(Switch case + formula bases)

7. Write a program to input any 5 numbers (including positive and negative).


Perform the following tasks:
(a) Count the positive numbers
(b) Count the negative numbers
(c) Sum of positive numbers
(d) Sum of negative numbers
(For Loop)

8. A Pre-Paid taxi charges from the passenger as per the tariff given below:
Distance Rate
Up to 5 km ₹ 100
For the next 10 km ₹ 10/km
For the next 10 km ₹ 8/km
More than 25 km ₹ 5/km
Write a program to input the distance covered and calculate the amount paid by the
passenger.
The program displays the printed bill with the details given below:
Taxi No. :
Distance covered :
Amount :
(Slab based- Conditional statement)

9. Write a program to display the pattern:


(a)To print (b) To print (c) To print (d) To print
Right Triangle Right Triangle Right Triangle Right Triangle
Star Pattern Number Pattern Char Pattern Char Pattern
* 1 A A
** 12 BB BC
*** 123 CCC DEF
**** 1234 DDDD GHIJ
***** 12345 EEEEE KLMNO

(e)To print Multiplication table from 5 to 10 for 10 iterations


(Iterative statement)
10. Write a program to input a number.
Display the output as:
(a) Find the number of digits.
(b) Find the sum of digits.
(c) Find the product of digits.
(c) Reverse Number.
(d) Is Palindrome Number.
(e) Is Spy Number.

11. Using switch statement, write a menu driven program to:


(a) find and display all the factors of a number input by the user
Example: Sample Input : n = 15
Sample Output : 1, 3, 5
(b) find and display the factorial of a number input by the user
Example: Sample Input : n = 5
Sample Output : 5! = 1*2*3*4*5 = 120
For an incorrect choice, an appropriate error message should be displayed.

12. Using a switch statement, write a menu driven program to:


(a) Generate and display the first 10 terms of the Fibonacci series
Example: 0, 1, 1, 2, 3, 5
(b) Prime number: (A number is said to be prime, if it is only divisible by 1 and itself)
Example: 3,5,7,11

You might also like