class 9 record program list
class 9 record program list
1. The normal temperature of the human body is 98.6 F. Write a program to convert the
temperature into degree Celsius and display the output.
Hint [ c/5=(f+32)/9]
2. Write a java program to find the area, perimeter and diagonal of a square. Display the output
of the program taking side of a square as 25.
3. Write a program by using class ‘Employee’ to accept Basic pay of an employee. Calculate the
allowances and deductions as given below
Dearness Allowance (DA) : 30% of Basic pay
House Rent Allowance (HRA) : 15% of Basic pay
Provident Fund (PF) : 12.5% basic pay
Hint: Gross pay=Basic pay +DA+HRA
Net pay=Gross pay -Provident Fund
4. Write a program to find and display the value of the given expression
(x+3)/6-(2x+5)/3
Inputting the value of x using function argument
5. Write a program to input the time in seconds. Display the time after converting them into
hours, minutes and seconds
6. Write a program to find and display the value of the given expression
(a2+b2+c2)/ abc
taking the value of a, b, c from the user using function argument
7. A certain amount is invested at the rate of 10% per annum for 3 years. Write a program to
find the difference between compound interest (C.I) and simple interest (S.I) by taking
amount as an input.
8. A shopkeeper offers 10% discount on the printed price of a digital camera. However, a
customer must pay 6% GST on the remaining amount. Write a program in java to calculate
the amount to paid by the customer taking printed price as an input.
9. A pre-paid taxi charges from the passenger as per the tariff given below
Distance Rate
Up to 5 km Rs 100
For the next 10 km Rs 10/km
For the next 10 km Rs 8 /km
More than 25 km Rs 5/km
Write a program to input the distance covered and calculate the amount to be paid by the
passenger. The program displays the printed bill with the details given below:
Taxi No :______________
Distance covered :_______________
Amount :_______________
10. In an examination, grades are awarded to the students in science according to the average
marks obtained in the examination
Marks Grades
80% and above Distinction
60% or more but less than 80% First Division
45% or more but less than 60% Second Division
40% or more but less than 45% Pass
Less than 40% Promotion not granted
Write a program to input name and marks in Physics, Chemistry and Biology. Calculate the
average marks. Display the name, average marks and grade obtained.
Sample description