Project20question2024
Project20question2024
Project20question2024
8. Write a program in Java to accept a number and check whether it belongs to the Fibonacci
Series (sequence) or not.
9. An Emirp number is a number which is prime backwards and forwards.
Example: 13 is an Emirp number since 13 and 31 are both prime numbers. Write a program to accept a number and
check whether it is an Emirp number or not.
10. Write a menu driven program in Java to provide the following options to generate and print
output based on user’s choice:
To print the REPUNIT series: 1, 11, 111, 1111, …. upto 'n' terms
11. An electronic shop has announced the following seasonal discount on purchase of certain items.
Write a program based on the above criteria to input name, address, amount of purchase, and type
of purchase (L or 1 for Laptop and D or 2 for Desktop) by a customer. Compute and print the net
amount to be paid the customer along with name and address.
[Hint : discount= (discount rate /100) * amount of purchase Net amount= amount of purchase – discount]
12. Write a program in JAVA to find the Prime factors of a number.
Prime factors of a number are those factors, which are prime in nature and by which the number is completely divisible (1
will not be taken as prime number).
Few such numbers are: Prime Factors of 24 are 2, 2, 2, 3 Prime Factors of 6 are 2, 3
13. From an array a[] find the value n using linear search.
14. From an array a[], where the values are arranged in ascending order, find the value of n using
binary search.
15. Arrange the values of a[] in descending order using selection sort technique.
16. Names and total marks of 50 students are stored in two arrays n[] and t[]. Print the list of names
and totals rank wise.
17. Enter a sentence and check for palindrome.
18. From a sentence print the frequencies of uppercase, lowercase, digits and special characters.
19. Convert the uppercase characters to lowercase and vice versa in an entered sentence.
20. Enter a word and print its piglatin form.
--XX--