ICSE Practical Assignments for IX 2024-25
ICSE Practical Assignments for IX 2024-25
S. Programs Sign
No.
1 Write a program to display a message “How are you?” in the first line. In the
second line display “I am fine. Thank you”. In the 3rd line display “Bye”.
2 Write a program to declare four variables to store your Roll, class, section and
phone number with appropriate data types and print the data in following format:
Output:
Roll : xx Class : x Section : x Phone no. : xxxxxxxxxx
3 Write a program to declare two integer variables and swap the variables values
and print the original values and swapped values.
Example:
Output:
Original values:
A=65
B=20
Swapped values:
A=20
B=65
4 Write a program to declare two integer variables and swap the variables values
without using third variable and print the original values and swapped values.
5 Write a program to calculate the total number of seconds in a day.
6 Write a program to input the total number of days. Display the days after
converting them into years, months and days.
Example:
Input:
Total no of days = 645
Output:
Years: 1
Months: 9
Days: 10
7 Write a program to find the value of a*= a++ / 9 + ++b * 2 % 3 where a=10,b=6.
8 Write a program to take a marks of a student and assign grade according to the
following criteria using ternary operator:
If >=90 grade A ,if >=80 grade B, else grade C.
9 Write a program to accept 2 decimal numbers and display the sum of them.
10 Write a program to accept the length and breadth of a rectangle. Calculate and
display the area
11 Write a program to accept the radius of circle and then display the area and
perimeter of it. Given area = pi*r*r and perimeter=2*pi*r
12 write a program to accept 2 numbers. Display the addition, subtraction, product,
quotient and remainder of them.
13 Input temperature in degree Celsius and convert it into Fahrenheit.
14 Input quantity and price of an item purchased and print the bill amount. Calculate
the discount of 10% on the bill amount and the net amount. Print all details.
15 Input principal amount and period, given that the rate of interest is 8.5% Calculate
and print the simple interest.
16 Input roll number of a student and his marks in 3 subjects. Print all the details
along with the total marks and average.
17 Input details of an employee- employee ID, salary & age. Calculate the following:
DA : 9% of salary
HRA : 7.5% of salary
Provident Fund : 18% of salary
Income Tax : 30% of salary
Net Salary : ?
18 write a program to enter a number and display whether it is:positive and even,
positive and odd or negative
19 Write a program to input the cost price and the selling price of an article. If the
selling price is more than the cost price then calculate and display actual profit and
profit percent otherwise, calculate and display actual loss and loss percent. If the
cost price and selling price are equal, the program displays the message ‘Neither
profit nor loss’.
20 The equivalent resistance of series and parallel connections of two resistance 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 resistance accordingly.