Summer Work 2024 All Program Write in Practical Copy (Submission Date Just Next Scheduled Class After Vacation)
Summer Work 2024 All Program Write in Practical Copy (Submission Date Just Next Scheduled Class After Vacation)
2. Write a program to accept a sentence which may be terminated by either’.’, ‘?’or’!’ only. The words may
be separated by more than one blank space and are in UPPER CASE.
Perform the following tasks:
(a) Find the number of words beginning and ending with a vowel.
(b) Place the words which begin and end with a vowel at the beginning, followed by the remaining words as
they occur in the sentence.
3. A Circular Prime is a prime number that remains prime under cyclic shifts of its digits. When the leftmost
digit is removed and replaced at the end of the remaining string of digits, the generated number is still prime.
The process is repeated until the original number is reached again.
A number is said to be prime if it has only two factors I and itself.
Example:
131 197
311 971
113 179
Hence, 131 is a circular prime.
5. Write a Program in Java to input a number and display all digit in ascending order.
Example n=8491 Output – 1489
6. Write a Program in Java to input a number and convert in binary octal and hexadecimal using function.
7. Write a Program in Java to input a number and input 10 number and display all even number in ascending
order and odd number in descending order.
8. Write a Program in Java to input a number and input the name of 10 student and search name by number.
10. Write a Program n number of term of automorphic number as entered by user.( Automorphic number ia a
number whose square has the same digits in the end of number)
1 BHA SUMMER WORK CLASS XI
Ex- n=6 output – 1 5 6 25 76 376
11 Write a java program the magic number ( Ex n=28, = 22+82 = 68 = 62 + 82=100 = 12 +02 + 02 =1
13. Write a Program in Java to print all the Twin Prime numbers within a given range.
Note: Twin Prime numbers are a pair of numbers which are both prime and their difference is Example: Twin
Prime numbers in the range 1 to 100 are :
(3,5) (5,7) (11,13) (17,19) (29,31) (41,43) (59,61) (71,73)
14. Write a program to input a word from the user and remove the duplicate characters present in it.
15. The International Mobile Station Equipment Identity or IMEI is a number, usually unique, to
identify mobile phones, as well as some satellite phones. It is usually found printed inside the battery
compartment of the phone.
The IMEI number is used by a GSM network to identify valid devices and therefore can be used for stopping
a stolen phone from accessing that network.
The IMEI (15 decimal digits: 14 digits plus a check digit) includes information on the origin, model, and
serial number of the device.
For Example:
If input is IMEI = 490154203237518
16. Write a java program input a line of text and encrypt it with next fourth character.
( HAPPY- LETTC)
17. Write a Program in Java to input a number and check whether all digit are Unique or not.( 7512 is unique
)
18. Write a java program input binary number and covert it in Decimal, Octal, and hexadecimal.
20. Write a program to conduct lottery where all series in upper case three letter character randomly.