|
-
Airplane seating
help me and send your address and youll get a money order or a cheque im dumb
as a brick
Airline Reservation
write a text based app.
Assume the airplane has 20 seatrs in first class (5 rows of 4 seats)separated
by an aisle.
and 60 seats in economy class (10 rows of 6 seats each separated by an aisle)
Details of booked seats passebger first and last names, date booking was
made(dd/mm/yy),
ticket price, seating class (F or E) seat row (1,2,3 etc) and seat position
(A,B etc) are stored in a file.
Use 2 dimensional arrays to maintain the seating charts for each of seating
classses.
When passengers are added, ask for the class (first or economy, the name
of the passanger and the seating preference, Aisle ,window if first class
or aisle, centre ,window in economy class. Then try to find a match, assign
the seat by updating the seating chart and then update the file
If no match exists (that is the seat is taken) display an appropriate message.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks