Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please don't copy and paste other answers! I have the other codes but it exceeds character limits! #include #include #include using namespace std; void flightStatus(string

image text in transcribed

image text in transcribed

Please don't copy and paste other answers! I have the other codes but it exceeds character limits!

#include #include #include using namespace std; void flightStatus(string s){ string myText, word; ifstream MyReadFile(s); if(!MyReadFile){ cout words; while (ss >> word) { words.push_back(word); } string hr1 = words[3].substr(0, 2); string min1 = words[3].substr(2, 2); string hr2 = words[4].substr(0, 2); string min2 = words[4].substr(2, 2); int h1 = stoi(hr1), m1 = stoi(min1), h2 = stoi(hr2), m2 = stoi(min2); if(h1 == 12){ h1 = 0; } delay = ((h2-h1)*60) + (m2-m1); string k = '"' + to_string(delay) + '"'; words.push_back(k); for(int i = 0; i

int main(){ char Choice; cout >Choice; bool var = true; if((Choice != 'A') || (Choice != 'D') || (Choice != 'Q') || (Choice != 'a') || (Choice != 'd') || (Choice != 'q')){ while(var){ if((Choice == 'A') || (Choice == 'D') || (Choice == 'Q') || (Choice == 'a') || (Choice == 'd') || (Choice == 'q')) var = false; else{ cout > Choice; } } } if(Choice == 'Q' || Choice == 'q'){ cout

Departures.txt =

AA2833 25 Charleston 1145 1159 AA0102 33 Phoenix 1140 1140 AA9321 22 Paris 0455 0500 AA0562 04 Dallas 0344 0405 AA1203 69 Chicago 1230 0245

Arrivals.txt =

AA9342 02 Philadelphia 0300 0330 AA0021 49 Detroit 0215 0215 AA2836 02 Chattanooga 0401 0401 AA0002 56 Atlanta 0330 0340

Flight Status Reporter code = image text in transcribed

image text in transcribed

Seat Reservation System Code =

image text in transcribed

image text in transcribed

1. Complete Programming Assignment 5. This involves upgrading the flight status reporter as given in Programming Assignment 5. You will need to create two one dimensional arrays of string type to store the flight information from the two files Arrivals.txt and Departure.txt. Assume a maximum of 100 entries per file. The information is displayed by performing a linear traversal through the unsorted arrays. 2. Integrate the above program into the airport application project, replacing the earlier flight status reporter. Use the given Airport Application documen It as a guide 3. Your project will now be called Airport Application and will consist of the following parts Emergency Decision Maker Flight Status Reporter Seat Reservation System Movie Selector (Place holder only. This option will be implemented for the final project) 4. The main menu will offer a choice of selecting from the four above options or quitting. The movie selector option if chosen will simply say "Movie Selector" Given below are the relevant sections repeated from the airport application document Create a file called Airport Application Main.cpp which contains a single function call Airport Application Menu() which offers the following looping main menu Emergency Navigation - E Flight Status Report -R Seat Reservation / Cancellation -S Movie Selection -M Exit -Q Depending upon the menu selection the execution chart of this function Airport Application Menu is: If 'S' call seatReservation() If 'R' call flightStatusReport() If 'E' call emergencyNavigation() If 'M' call movieSelection() If 'Q' exit the application The airportApplicationMenu function needs to be defined in a file called Airport Application Functions.cpp. The accompanying header files should be Airport Application Header.h and any other header files used in the previous programming assignments as needed. #include using namespace std; int main() { // Program Greeting cout>a; if(a=='Y' || a == 'y'){ // Trouble-shooting MENU cout>ch; Tree for the choices switch (ch) case 1: cout>a; if(a==y){ cout>a; if(a==y) { cout>a; if(a==y){ cout>a; if(a==y) { cout>a; if(a==y) { cout>a; if(a==y) { cout>a; if(a==y) { cout>a; if(a==y) { cout>ans; if(ans >0 && ans using namespace std; void initialize(char seats[][4]){ for(int i-;i>ch; if (ch=='R'){ if(isfull(seats){ cout>n>>X; while(1) { if((n>-1 && n-'A' &&x>n>>x; if(reserve( seats,n,x)){ seats[n-1][x-'A']='X'; cout>n>>x; while(1) { if((n>-1 && n-'A' &&x>n>>x; if(cancel(seats,n,x)){ seats[n-1][x-'A']='\0'; cout>n>>x; while(1) { if((n>=1 && n='A' &&x>n>>x; } if(cancel(seats,n,x)){ seats[n-1][x-'A']='\0'; cout using namespace std; int main() { // Program Greeting cout>a; if(a=='Y' || a == 'y'){ // Trouble-shooting MENU cout>ch; Tree for the choices switch (ch) case 1: cout>a; if(a==y){ cout>a; if(a==y) { cout>a; if(a==y){ cout>a; if(a==y) { cout>a; if(a==y) { cout>a; if(a==y) { cout>a; if(a==y) { cout>a; if(a==y) { cout>ans; if(ans >0 && ans using namespace std; void initialize(char seats[][4]){ for(int i-;i>ch; if (ch=='R'){ if(isfull(seats){ cout>n>>X; while(1) { if((n>-1 && n-'A' &&x>n>>x; if(reserve( seats,n,x)){ seats[n-1][x-'A']='X'; cout>n>>x; while(1) { if((n>-1 && n-'A' &&x>n>>x; if(cancel(seats,n,x)){ seats[n-1][x-'A']='\0'; cout>n>>x; while(1) { if((n>=1 && n='A' &&x>n>>x; } if(cancel(seats,n,x)){ seats[n-1][x-'A']='\0'; cout

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Mining Concepts And Techniques

Authors: Jiawei Han, Micheline Kamber, Jian Pei

3rd Edition

0123814790, 9780123814791

More Books

Students also viewed these Databases questions

Question

How do Excel Pivot Tables handle data from non OLAP databases?

Answered: 1 week ago