English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

program display
Please type 1 for smoking
Please type 2 for non-smoking
If type 1,
program assign a seat in the smoking section (seat 1-5)
If type 2,
assign a seat non-smoking section (seat 6-10)
program print a Boarding Pass indicating the person seats number and whether it is smoking or non-smoking section of plane.
Use a single subscripted array to represent the seating chart of the plane. Initialize elements of the array to 0 to indicate that all seats are empty. As each seat is assigned set the corresponding elements to 1 to indicate that seats s no longer available.
program should, never assigned a seat that has already been assigned.
the smoking section is full program should ask if it is acceptable to be placed in the non smoking section
the non-smoking section is full program should ask if it is acceptable to be placed in the smoking section
In case of ( 5, 6 above) If ‘Yes’ then make the appropriate seat assignment. If ‘No’ than print the message “Next flight leaves in 3 H

2007-11-04 22:22:12 · 3 answers · asked by alam 1 in Travel Air Travel

3 answers

what is your question?

2007-11-04 22:52:13 · answer #1 · answered by Mr Smart 4 · 1 0

you do realize that most airlines don't allow smoking right?

2007-11-06 13:57:46 · answer #2 · answered by blndsugar 2 · 2 0

are u providing us with some info...
or do you have a query ... ???

2007-11-05 08:54:37 · answer #3 · answered by Dee 3 · 2 0

fedest.com, questions and answers