0
How can I display the flight seats arrangement using C++?
How can I print in the following form? First Class: |A1|A2|A3|---- |A4|A5|A6| |B1|B2|B3|---- |B4|B5|B6| |C1|C2|C3|---- |C4|C5|C6| |D1|D2|D3|---- |D4|D5|D6| Economy Class: |E1|E2|E3|---- |E4|E5|E6| |F1|F2|F3|---- |F4|F5|F6| |G1|G2|G3|---- |G4|G5|G6| |H1|H2|H3|---- |H4|H5|H6| |I1|I2| https://code.sololearn.com/cWTEBt9U9DQc/?ref=app
7 Réponses
+ 1
Yes that's it brother... Thank you 😊
0
The two blocks are first class? I thought there would be economy blocks too ...
0
I have fixed it. It was a mistake
0
Okay I have a working version. But one more question, should the number of rows in first class and economy class be adjustable? mean do you tell your code how many rows are first class and how many rows are economy class?
Also the I row from your Description only has 2 seats. Is that correct?
0
No they should not be adjustable and yes the I row only has 2 seats.
0
Is this it?
https://code.sololearn.com/cec48dhYeJYZ/?ref=app
0
Okay no problem 👌