unsunghero2314
Junior Member
- Joined
- Sep 4, 2009
- Messages
- 3
- Reaction score
- 0
hey all.
i'm currently working on an airline reservation program.
only managed to complete 2 parts. i'm lost with the remaining 2 parts (cancel & display seat arrangement).
anyone wanna give it a shot? will post the file here.
_____________________________________________________________
PART 1
(a) Display a menu system as follows :-
? If choice is A, Add a person to the flight or waiting list.(see part 2)
? If choice is B, Remove a passenger from the flight. (see part 4)
? If choice is C, Display Seating arrangment (see part 5)
? If choice is D, Display the waiting list
? If choice is E, Quit from the system.
(b) Create your own screen design or use this design as follows:
GREEN DOT AIRLINE ON LINE RESERVATION SYSTEM
(A) Reserve a seat
(B) Cancel a reservation
(C) Display Seating arrangement
(D) View Waiting List
(E) Quit
>> Enter Choice : XX
PART 2. Reserve a seat
When a customer want to reserve a seat, you should do following:
a) Request for passenger’s name
b) Ask passenger’s preference: smoking or non-smoking
c) Check if any seats of selected category (smoking/non-smoking) are available. If
yes, allocate a seat and printout a ticket.
d) If seats in selected area is not available, check if there is any seat in the other
section, if yes, ask whether customer wants to be in the other section. If yes,
allocate the seat, and printout a ticket. Otherwise, put him/her in the waiting list,
and display a message like “Sorry, the flight is full. You will be put in the waiting
list….”
e) Enter date of transaction.
PART 3. Cancel a reservation
When a customer wants to cancel a reservation, the program will do following.
a) Request for the passenger’s name
b) Search the seating chart for passenger’s name and delete it.
c) If the waiting list is empty, update the array so that the seat is available for the
other bookings
d) If the waiting list is not empty, get the first person in the waiting list who opted
for the same seating category, and allocate the seat to them. Print out the ticket.
PART 4. Display Seat arrangement
Create your own output screen design to show the seating arrangement.
Non smoking area:
=====================
Seat1 Seat2
Row 1: Mr. John Mrs John
Row 2 Mary Lim Jeffery Tan
Row 3 Gottman Bernald
Row 4 Thomas Dennis
Smoking area:
=====================
Seat1 Seat2
Row 1: Tina T Ashly
Row 2: Clinton Hoffman
_____________________________________________________________
MANY THANKS
)
let me know of any hints/ tips.
cheers guys.
Marco
i'm currently working on an airline reservation program.
only managed to complete 2 parts. i'm lost with the remaining 2 parts (cancel & display seat arrangement).
anyone wanna give it a shot? will post the file here.
_____________________________________________________________
PART 1
(a) Display a menu system as follows :-
? If choice is A, Add a person to the flight or waiting list.(see part 2)
? If choice is B, Remove a passenger from the flight. (see part 4)
? If choice is C, Display Seating arrangment (see part 5)
? If choice is D, Display the waiting list
? If choice is E, Quit from the system.
(b) Create your own screen design or use this design as follows:
GREEN DOT AIRLINE ON LINE RESERVATION SYSTEM
(A) Reserve a seat
(B) Cancel a reservation
(C) Display Seating arrangement
(D) View Waiting List
(E) Quit
>> Enter Choice : XX
PART 2. Reserve a seat
When a customer want to reserve a seat, you should do following:
a) Request for passenger’s name
b) Ask passenger’s preference: smoking or non-smoking
c) Check if any seats of selected category (smoking/non-smoking) are available. If
yes, allocate a seat and printout a ticket.
d) If seats in selected area is not available, check if there is any seat in the other
section, if yes, ask whether customer wants to be in the other section. If yes,
allocate the seat, and printout a ticket. Otherwise, put him/her in the waiting list,
and display a message like “Sorry, the flight is full. You will be put in the waiting
list….”
e) Enter date of transaction.
PART 3. Cancel a reservation
When a customer wants to cancel a reservation, the program will do following.
a) Request for the passenger’s name
b) Search the seating chart for passenger’s name and delete it.
c) If the waiting list is empty, update the array so that the seat is available for the
other bookings
d) If the waiting list is not empty, get the first person in the waiting list who opted
for the same seating category, and allocate the seat to them. Print out the ticket.
PART 4. Display Seat arrangement
Create your own output screen design to show the seating arrangement.
Non smoking area:
=====================
Seat1 Seat2
Row 1: Mr. John Mrs John
Row 2 Mary Lim Jeffery Tan
Row 3 Gottman Bernald
Row 4 Thomas Dennis
Smoking area:
=====================
Seat1 Seat2
Row 1: Tina T Ashly
Row 2: Clinton Hoffman
_____________________________________________________________
MANY THANKS
let me know of any hints/ tips.
cheers guys.
Marco