Question
I need help in modifying my code. I'm on my final step already. I'm struggling with how to display the final output when the user
I need help in modifying my code. I'm on my final step already. I'm struggling with how to display the final output when the user is done choosing the tickets he or she has reserved and how do I add an exit option? Lastly Im having trouble to display when the user picked the wrong class and row.
#include
row[1] = row[1] - 1; break; case 'D': case 'd': row[0] = row[0] - 1; row[1] = 4; row[1] = row[1] - 1; break; case 'E': case 'e': row[0] = row[0] - 1; row[1] = 5; row[1] = row[1] - 1; break; case 'F': case 'f': row[0] = row[0] - 1; row[1] = 6; row[1] = row[1] - 1; break; } if(ticket == "FC") { if(row[0]+1 == 1 || row[0]+1 == 2) { if(airplane[row[0]][row[1]] == 0) { airplane[row[0]][row[1]] = 1; airchar[row[0]][row[1]] = 'X'; } else if(airplane[row[0]][row[1]] == 1) { cout<<"Message: Apologies but Seat "< { airplane[row[0]][row[1]] = 1; airchar[row[0]][row[1]] = 'X'; } else if(airplane[row[0]][row[1]] == 1) { cout<<"Message: Apologies but Seat "<
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started