Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
32 views

Java Program (9th Class)

The document lists 35 programming problems involving number calculations, series, patterns, conversions, and calculations. Many involve taking user input for numbers and performing operations like determining factors, checking for prime numbers, calculating taxes or bills based on ranges.

Uploaded by

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

Java Program (9th Class)

The document lists 35 programming problems involving number calculations, series, patterns, conversions, and calculations. Many involve taking user input for numbers and performing operations like determining factors, checking for prime numbers, calculating taxes or bills based on ranges.

Uploaded by

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

Class – 9, Programming Questions

1. WAP to take a number. Display its factors.


2. WAP to take a number. Display its factorial.
3. WAP to take a number. Display multiplication table of it up to 10 terms.
4. WAP to take a number. Display whether it is a Prime number or not.
5. WAP to take a number. Display whether it is a Perfect number or no.
6. WAP to take two numbers. Display their HCF and LCM.
7. WAP to take two numbers. Display whether they are Co-Prime numbers or not.
8. WAP to take two numbers. Display whether they are Twin-Prime numbers or not.
9. WAP to take two numbers. Display whether they are Amicable pair or not.
10. WAP to take two numbers. Display all even numbers between them in one column and all odd
numbers in another column.
11. WAP to take a number. Display sum of its digits and count how many digits it has.
12. WAP to take a number. Display how many even digits, odd digits and zeros are there.
13. WAP to take a number. Display the highest and the lowest digit it has.
14. WAP to take a number. Display whether it’s a Palindrome number or not.
15. WAP to take a number. Display whether it’s an Armstrong number or not.
16. WAP to take a number. Display whether it’s a Nelson number or not.
17. WAP to take a number. Display whether it’s an Automorphic number or not.
18. WAP to take a number. Display whether it’s an Neon number or not.
19. WAP to take a number. Display whether it’s an Niven number or not
20. WAP to take a number. Display whether it’s an Disarium number or not
21. WAP to take twenty numbers. Display the highest and lowest number from them.
22. WAP to take fifteen numbers. Display only the Prime numbers from them and also count and tell
how many Prime numbers are found.
23. WAP to take ten numbers. Display sum of all factorials of those numbers.
24. WAP to display sum of the following series  sum = 1/2 + 2/3 + 3/4 + 4/5 + …… up to 10 terms.
25. WAP to display sum of the following series  sum = 1/2 + 3/4 + 5/6 + 7/8 + …… up to 15 terms.
26. WAP to display sum of the following series  sum = ½! + 2/3! + 3/4! + 4/5! + …… up to n terms.
27. WAP to display the first ten numbers of Fibonacci series.
28. WAP to display first ten odd Fibonacci series numbers.
29. WAP to display the following structure patterns.
a) * b) 1 c) ***** d) 4321 e) 1
** 12 ***** 321 22
*** 123 ***** 21 333
**** 1234 ***** 1 4444
30. WAP to take the age of some persons as long as user wants. Display how many of them are minors
and how many are adults.
31. WAP to take as many numbers as user wants and display which of them are Buzz numbers and
which are not. (A number is called Buzz number if it ends with 7 or is divisible by 7)
32. Write a menu driven program to show conversion of Temperature from one form to another as per
user’s choice.
33. Write a menu driven program to convert either minutes to hours or seconds to minutes as per user’s
choice.
34. WAP to take the annual income of a person. Display the income tax to be paid by him on following
basis.
Annual Income Tax
Up to 5 Lac Nil
Next 5 Lac 5% of the income exceeding 5 Lac
Above 10 Lac 10% of the income exceeding 10 Lac + 25,000

35. WAP to take the units consumed by a user of electricity in a month. Display his electricity bill on the
following basis.
Units Rate
Up to 100 Rs. 5 / Unit
Next 100 Rs. 6/ Unit
Next 200 Rs. 7 / Unit
Above 400 Rs. 8 / Unit

You might also like