0% found this document useful (0 votes)
30 views3 pages

class 9 record program list

The document outlines a list of programming tasks for Grade 9 students, focusing on various Java programming exercises. These tasks include temperature conversion, area and perimeter calculations, employee salary computations, and more. Each task provides specific requirements and hints for implementation, encouraging students to apply their programming skills.

Uploaded by

aaliyaajeesh18
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views3 pages

class 9 record program list

The document outlines a list of programming tasks for Grade 9 students, focusing on various Java programming exercises. These tasks include temperature conversion, area and perimeter calculations, employee salary computations, and more. Each task provides specific requirements and hints for implementation, encouraging students to apply their programming skills.

Uploaded by

aaliyaajeesh18
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Grade 9

COMPUTER 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.

Variable description table format for reference

Variable description table

Variable Name Data type Description

Sample description

Stores the value of temperature in Fahrenheit


Stores the value of temperature in Celsius after calculation
Stores the value of the sides of the square
Stores the value of the calculated perimeter of the square
Stores the value of provident fund
Stores the value of net pay
Stores the value entered by the user
It stores the calculated value by the given expression

Stores a value entered by the user for a


It stores the rate in r
It stores the compound interest in CI
Stores the calculated value as discount
Sores the name of the student
It sores the marks in chemistry
It stores the grade of the student
It stores the actual price to be paid by the customer
It stores the printed price of the camera
It stores the discount amount
It stores the calculated value of sum

You might also like