Do All The Programs On BLUEJ.: Data Members Purpose
Do All The Programs On BLUEJ.: Data Members Purpose
CLASS X
2021-22
ISSUE DATE: 15/06/2021 REVIEW DATE: 15/10/2021 SUBMISSION DATE: 24/10/2021
P3 Write a program in Java to enter a sentence. Frame a word by joining all the first characters of
each word of the sentence. Display the word.
Sample Input: INDIAN SCHOOL CERTIFICATE EXAMINATION
Sample Output: ICSE
P4 Design a class to overload a function num_calc() as follows:
void num_calc(int num, char ch) with one integer argument and one char argument, computes the
square of integer argument if choice ch is 's' otherwise find its cube.
void num_calc(int a, int b, char ch) with two integer arguments and character argument. It
computes the product of integer arguments if ch is 'p' else adds the integers.
void num_calc(String s1, String s2) with two string arguments, which prints whether the strings are
equal or not
P5 Design a class to overload a function series() as follows:
P7 Define a class called Student to check whether a student is eligible for taking admission in class XI
with the following specifications:
Data Members Purpose
Marks Eligibility
Write the main method to create an object of the class and call all the member methods.
P8 Write a program in to input and store all roll numbers, names and marks in 3 subjects of n number
of students in five single dimensional arrays and display the remark based on average marks as
given below
Average marks = total marks/3
Average marks Remark
85 – 100 EXCELLENT
75 – 84 DISTINCTION
60 – 74 FIRST CLASS
40 – 59 PASS
Less than 40 POOR
P9 Write a program to accept the year of graduation from school as an integer value from the user.
Using the Binary Search technique on the sorted array of integers given below, output the message
‘Record exists’ if the value input is located in the array. If not, output the message Record does not
exist”. (1982, 1987, 1993. 1996, 1999, 2003, 2006, 2007, 2009, 2010)
P 10 Write a program to input and sort the weight of ten people. Sort and display them in
descending order using the Bubble sort technique.
---------------------------------------------------------END OF PROJECT---------------------------------------------------------