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

Summer Work 2024 All Program Write in Practical Copy (Submission Date Just Next Scheduled Class After Vacation)

The document provides 20 programming problems as summer work for students. The problems cover a range of programming concepts like arrays, strings, sorting, searching, number systems, and mathematical operations. Students are asked to write programs in Java to solve each problem and submit their solutions by a given date.

Uploaded by

hardikjha2007
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

Summer Work 2024 All Program Write in Practical Copy (Submission Date Just Next Scheduled Class After Vacation)

The document provides 20 programming problems as summer work for students. The problems cover a range of programming concepts like arrays, strings, sorting, searching, number systems, and mathematical operations. Students are asked to write programs in Java to solve each problem and submit their solutions by a given date.

Uploaded by

hardikjha2007
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Summer work 2024

All program write in practical Copy


(Submission Date just next scheduled class after vacation)
1. Write a program to declare a matrix A[] of order (M ) where ‘M’ must be greater than 3 and less than 10.
Allow the user to input positive integers into this matrix. Perform the following tasks on the matrix:
(a) All even number in descending order using any standard sorting technique
(b) Calculate the sum of the odd number.
(c) Display the original matrix,

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.

4. Accept a line of text and display words in ascending order.


( Ex – THIS IS MY CLASS Output – CLASS IS MY THIS)

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.

9. Write a Menu driven Program in Java to display following pattern.


1 54321 1
12 5432 12
123 543 123
1234 54 1234
12345 5 12345

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

12. Write a Program in Java to display hashed number between 1 to 200.


( Hashed number example 18= ( 1+8) = 9 now 18 divisible by 9

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

Since, 60 is divisible by 10, hence the given IMEI number is Valid.

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.

2 BHA SUMMER WORK CLASS XI


19. Write a Program to display Kaprekar number ( ex- 45 = 452=2025 , split equal 20+25=45.

( ex 2- n=297 = 2972 = 88209 = 88 +209 = 297)

20. Write a program to conduct lottery where all series in upper case three letter character randomly.

( ex- ANC SER NNT)

3 BHA SUMMER WORK CLASS XI

You might also like