Grade 9 Project - 2024-25
Grade 9 Project - 2024-25
Grade 9 Project - 2024-25
Instructions:
Programs:
1. Write a program to input a two-digit number and check if it is a
Nest number or not. A number is said to be a ‘Nest Number’ if the number
contains at least one digit which is zero.
Sample input: 20
Sample output: It is a Nest Number
2. Write a program that accepts three integers as parameters and find the
middle value of the three.
Sample input: 5, 1, 8
Sample output: 5
3. Write a program to input two numbers. Display the numbers after swapping
them by without using a third variable.
Sample Input x=40, y= 50 ;
Sample Output: x=50, y= 40 ;
4. Write a menu driven program in Java to accept a number and perform the
following operations depending on the user's choice:
Entered number is a Buzz number or not.
Entered number is even or odd.
Entered number is positive or negative.
Note: A Buzz number is a number which is either divisible by 7 or has 7 in
its unit's place.
6. Write a program that prompts the user to enter an integer and determines
whether it is divisible by 5 and 10, it is divisible by 5 or 10, and whether it
is divisible by 5 or 10, but not both. Display the result accordingly.
11. Write program to accept the number of days and display it after
converting into number of years, number of months and number of days.
12. Given below is a hypothetical table showing rate of income tax for an
India citizen, who is below or up to 60 years.
Taxable income (TI) in Rs. Income Tax in Rs.
Up to Rs. 2,50,000 Nil
More than Rs. 2,50,000 and less (TI - 1,60,000) * 10%
than or equal to Rs. 5,00,000
More than Rs. 5,00,000 and less (TI - 5,00,000) * 20% + 34,000
than or equal to Rs. 10,00,000
More than Rs. 10,00,000 (TI - 10,00,000) * 30% + 94,000
Write a program to input the name, age, and taxable income of a person. If
the age is more than 60 years, then display the message "Wrong Category".
If the age is less than or equal to 60 years then compute and display the
income tax payable along with the name of taxpayer, as per the table given
above.
Write a program to input weight of a parcel and type of booking (‘O’ for
ordinary and ’E ‘ for Express ). Calculate and print the charges accordingly.
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'.
Sample Input: 81, 100
Sample Output: They are perfect square numbers.
Sample Input: 225, 99
Sample Output: 225 is a perfect square number.
99 is not a perfect square number.
*****