Assignment_Questions_13_to_20
Assignment_Questions_13_to_20
Question: Write a program in Java to accept a string and print the new string after removing all the
vowels present in the string.
17. Title: Enter 15 numbers from keyboard, assuming that no integer is a zero and sort them using
bubble sort or selection sort as per users choice.
Question: WAP a program to enter 15 integers from the keyboard, assuming that no integer entered is a
zero. Sort the integers either using bubble sort or selection sort depending on the users choice and then
print them in ascending order.
18. Title : Enter names of visitors in double dimensional array and display the their room and floor
number.
Question: A Metropolitan Hotel has 5 floors and 10 rooms in each floor. The names of the visitors are
entered in a Double Dimensional Array (DDA) as M[5][10].The Hotel Manager wants to know from
the "Enquiry" about the position of a visitor (i.e. floor number and room number) as soon as he enters
the name of the visitor. Write a program in Java to perform the above task.
Page 1 of 2
Member Methods Purpose
int totalamt To store the amount to be paid after updating the original amount
Member
Purpose
Methods
void accept() To take input for name, coach, mobile number and amount
First_AC ₹700
Second_AC ₹500
Third_AC ₹250
Sleeper None
Write a main method to create an object of the class and call the above member methods.
****************************
Page 2 of 2