0% found this document useful (0 votes)
4 views

ComputerProject_IX_2024-25 (1)

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

ComputerProject_IX_2024-25 (1)

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Computer project for class IX

2024-2025

1. Write a program to display all the 'Buzz Numbers' between p and q (where p<q).
A 'Buzz Number' is the number which ends with 7 or is divisible by 7.
2. Write a program to accept a number and check whether it is a perfect number or
not.
Perfect number: A number is called Perfect if it is equal to the sum of its factors
other than the number itself.
3. An Abundant number is a number for which the sum of its proper factors is
greater than the number itself. Write a program to input a number and check and
print whether it is an Abundant number or not.
Example:
Consider the number 12.
Factors of 12 = 1, 2, 3, 4, 6 Sum of factors = 1 + 2 + 3 + 4 + 6 = 16
As 16 > 12 so 12 is an Abundant number.
4. Write java Switch-Case program to make calculator.
use the Scanner class to take 3 inputs from the user.
operator - specifies the operation to be performed.
number1/number2 - operands to perform operation on.
5. Write a java program to find the greatest and smallest number among three
numbers.
6. Write a program to accept a number and find whether a number is a Sunny
number or not.
A number is said to be sunny number if the next number is a perfect square.
Example: 8
8+1=9 is a perfect square number. So 8 is a sunny number.
7. Using switch case write a menu driven program to display the following
(a) Write a program to display the first ten terms of the series
5,10,17…….
(b) Write a program to print the Fibonacci series
0,1,1,2,3,5…….
in Fibonacci series next number is the sum of previous two numbers.
8. Write a program to print the following pattern
1
22
333
4444
55555
9. Write a program to find the sum of the series
12+22+32…………. N2

10. ABC electric company charges its customers on the following tariff.
Units consumed Rate per Unit
<=100 units 0.00
for the next 100 units 0.80/ unit
for the next 100 units 1 Rs/unit
for the next 200 units 1.50Rs/unit
However each customer has to pay Rs 100 as rent for the meter box. Write a
program to accept the name, phone no and the unit consumed and display all
the details along with the charge to be paid by him/her.

You might also like