0% found this document useful (0 votes)
28 views1 page

Submit To: Rollnumber - Zip: Saeed - Alam@Cse - Kuet.Ac - BD

1) Use threads to check if 10 strings from a file are palindromes, with each thread checking one line. Output results to a separate file. 2) Develop a flight reservation system in Java using OOP concepts. A flight has attributes like ID, route, arrival/departure times, fare, type, date, seats. It can book, cancel tickets, display details. There are 3 airlines that may offer discounts on fare for different classes. 3) Create 2 collections of 5 random flight objects. Merge the collections into one and check if it contains a specific flight object.

Uploaded by

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

Submit To: Rollnumber - Zip: Saeed - Alam@Cse - Kuet.Ac - BD

1) Use threads to check if 10 strings from a file are palindromes, with each thread checking one line. Output results to a separate file. 2) Develop a flight reservation system in Java using OOP concepts. A flight has attributes like ID, route, arrival/departure times, fare, type, date, seats. It can book, cancel tickets, display details. There are 3 airlines that may offer discounts on fare for different classes. 3) Create 2 collections of 5 random flight objects. Merge the collections into one and check if it contains a specific flight object.

Uploaded by

khalid syfullah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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: [email protected]


RollNumber.zip

You might also like