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

15th Aug 2021, 4:01 PM
JarBeatz
JarBeatz - avatar
7 Respostas
+ 1
Yes that's it brother... Thank you 😊
16th Aug 2021, 9:19 PM
JarBeatz
JarBeatz - avatar
0
The two blocks are first class? I thought there would be economy blocks too ...
15th Aug 2021, 4:08 PM
Ipang
0
I have fixed it. It was a mistake
15th Aug 2021, 4:15 PM
JarBeatz
JarBeatz - avatar
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?
15th Aug 2021, 4:33 PM
Ipang
0
No they should not be adjustable and yes the I row only has 2 seats.
15th Aug 2021, 5:52 PM
JarBeatz
JarBeatz - avatar
16th Aug 2021, 12:35 AM
Ipang
0
Okay no problem 👌
17th Aug 2021, 2:46 AM
Ipang