You are on page 1of 1

Time: 1 Hour

1) Using threads, find if a given string is palindrome or not. Take input of 10 lines from a file and
also show output in a separate file. Use one thread for one line.

2) a) A flight can have the following private information: Flight id, Route id, Arrival time, Departure
time, Flight fare, Flight Type, Flight Date and Available Seats. It has methods for booking tickets,
cancelling tickets and displaying details. At Present, There are 3 airlines currently operating:
Indian Airlines, Qatar Airlines and American Airlines. A passenger can buy any type of tickets
from business, economy or general class. Indian Airlines and Qatar Airlines gives discounts on
flight fare 15% for Economy Class, 20% for Business Class and 5% for general class whereas
American Airlines gives no discount. Now your job is to develop a Flight Reservation system
using the basic concepts of oop in java.

b) i) Now Create two collection of 5 random objects of flights.


ii) Merge both into one collection.
iii) Check if it contains a particular object(“F121”, ”IND111”, ”12:00”, ”18:00”, 300$, ”ECO”,
”21/09/2019”, 21)

Submit to: saeed.alam@cse.kuet.ac.bd


RollNumber.zip

You might also like