You may assume no passenger appears more than once in the group list. Likewise, print a error message for each group passenger who cannot be assigned a seat because the plane becomes full past the group's start seat. These messages are highlighted in the sample output given below. If both error conditions are satisfied, print just the message saying the passenger already has a seat. This input is based on the input shown in the program 5 writeup.
Additions are in bold text.
This is the corresponding output for the above input. Again, output that is additional to program 5's output is in bold text. The following is an echo of the original passengers' list. The current number of passengers is 6. The following is the final passengers' list.