Class 10 Project File Problems-Part2-2024-2025
Class 10 Project File Problems-Part2-2024-2025
(In all the problems use Scanner class to accept data from the user)
Q1. WAP to input 3 integer arrays with same length (5 integers in each array) and store all the array
elements in a new array and finally display the new array.
Q2. WAP to input a word and store the vowels in an array and all the consonants in the second array
and display the both the array elements.
Q3. WAP to input a line of text and store all the words in the string array and display all the array
elements with no of vowels and no of consonants.
Q4. WAP to input 5 real numbers (double type) in an array and store integer part of the numbers in
an array and decimal part in another array and print all 3 arrays line-wise as per given example.
Example:
Input: a[]={5.6, 6.56, 2.5, 7.8, 5.7};
Output:
a[ ] b[ ] c[ ]
========================
5.6 5 6
6.56 6 56
2.5 2 5
7.8 7 8
5.7 5 7
Q5. WAP to input 5 students name and their two subjects marks in 3 different arrays and search a
particular student name which will be given by the student and check whether it is found in the
array or not if it is found then display the student name along with two subjects marks. (use
linear search mechanism)
Q6. WAP to input 50 integers in an array and find the average of largest and smallest element in the
array.
Q7. WAP to input 10 students name in an array and search a particular name in the array using
binary search mechanism.
Q8. WAP to initialize 5 students name and their computer, history and mathematics marks in 3
different arrays and sort the array elements in ascending order on name field using bubble sort
mechanism.
Q9. WAP to create a 2D square matrix with odd length (3 x 3 or 5 x 5 ) and store the integer
numbers and display the array elements with row sum.
Q10. WAP to initialize 16 integer numbers in an array and read all the elements one by one and store
in a 2D square matrix and finally display both the array elements.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~