Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

visual studio (c++ I attached txt.file below: LGA 3 LGA 13 LGA 32 LGA 105 LGA 26 JFK 189 LGA 59 LGA 5 LGA 115

visual studio (c++

I attached txt.file below:

image text in transcribed

LGA 3 LGA 13 LGA 32 LGA 105 LGA 26 JFK 189 LGA 59 LGA 5 LGA 115 LGA 228 LGA 46 LGA 3 JFK 80 JFK 99 JFK 4 JFK 9 JFK 15 JFK 24 JFK 128 JFK 2 JFK 84 LGA 98 JFK 46 JFK 32 JFK 6 LGA 58 JFK 12 LGA 45 JFK 45 LGA 30 LGA 76 LGA 39 LGA 21 JFK 57 JFK 103 JFK 2 JFK 3 JFK 206 JFK 106 JFK 20 LGA 5 JFK 8 JFK 57 LGA 5 JFK 1 LGA 88 LGA 135 LGA 34 LGA 69 LGA 95 JFK 4 LGA 37 JFK 10 LGA 2 JFK 5 LGA 8 LGA 90 LGA 10 LGA 18 LGA 97 JFK 38 JFK 3 JFK 115 LGA 3 JFK 144 JFK 21 JFK 9 JFK 28 JFK 149 JFK 20 LGA 14 LGA 14 LGA 14 JFK 17 JFK 8 LGA 8 JFK 46 LGA 29 JFK 35 LGA 11 LGA 25 LGA 13 LGA 42 LGA 11 LGA 60 JFK 1 LGA 13 LGA 48 LGA 5 JFK 45 LGA 166 JFK 79 JFK 34 LGA 3 LGA 6 LGA 2 LGA 67 LGA 18 LGA 4 LGA 83 LGA 154 JFK 44 LGA 140 JFK 45 JFK 99 LGA 10 LGA 45 JFK 33 LGA 1 LGA 12 JFK 9 JFK 72 JFK 3 JFK 50 LGA 40 LGA 274 JFK 28 JFK 4 LGA 7 JFK 57 JFK 21 LGA 88 JFK 4 LGA 79 LGA 3 JFK 5 JFK 44 JFK 23 LGA 29 JFK 26 JFK 26 LGA 8 LGA 57 JFK 1 LGA 26 LGA 21 JFK 64 JFK 12 LGA 25 LGA 5 JFK 181 LGA 16 LGA 11 JFK 73 JFK 11 LGA 96 LGA 41 JFK 7 LGA 114 LGA 21 LGA 7 LGA 39 LGA 132 JFK 3 LGA 2 LGA 8 LGA 42 JFK 24 JFK 35 JFK 19 LGA 17 JFK 4 JFK 6 JFK 6 LGA 46 LGA 13 LGA 4 LGA 23 JFK 9 LGA 100 JFK 46 LGA 39 JFK 6 LGA 45 LGA 37 JFK 12 JFK 60 JFK 1 LGA 6 JFK 39 JFK 47 LGA 2 LGA 5 LGA 34 JFK 2 LGA 8 JFK 7 JFK 19 LGA 6 LGA 111 JFK 1 LGA 5 LGA 2 LGA 18 JFK 16 LGA 5 JFK 48 LGA 8 LGA 3 JFK 34 JFK 50 LGA 18 LGA 7 JFK 16 LGA 102 LGA 22 JFK 15 JFK 2 JFK 126 LGA 4 LGA 10 JFK 5 JFK 37 LGA 11 LGA 14 JFK 27 LGA 47 LGA 6 LGA 37 LGA 4 JFK 4 JFK 143 LGA 31 JFK 78 LGA 31 LGA 7 LGA 19 LGA 4 JFK 4 LGA 4 JFK 139 JFK 28 LGA 101 JFK 23 LGA 74 LGA 5 LGA 97 JFK 2 JFK 29 LGA 8 LGA 50 LGA 2 LGA 116 JFK 50 LGA 10 LGA 7 JFK 19 JFK 52 JFK 63 LGA 10 JFK 9 LGA 2 JFK 87 JFK 16 LGA 27 JFK 6 LGA 65 JFK 51 LGA 16 JFK 2 LGA 5 LGA 13 LGA 4 JFK 31 JFK 93 JFK 42 LGA 29 JFK 35 LGA 191 JFK 6 JFK 24 JFK 48 JFK 15 JFK 62 LGA 72 JFK 41 LGA 36 LGA 11 LGA 7 JFK 2 JFK 31 LGA 4 JFK 27 LGA 38 LGA 6 LGA 13 LGA 45 LGA 7 LGA 18 LGA 18 LGA 13 LGA 7 JFK 9 LGA 9 JFK 107 JFK 8 LGA 74 JFK 221 JFK 39 JFK 61 LGA 16 JFK 99 LGA 13 LGA 41 LGA 37 LGA 192 JFK 118 LGA 12 JFK 72 JFK 7 LGA 30 JFK 6 JFK 15 JFK 141 LGA 34 JFK 22 LGA 37 LGA 98 JFK 95 LGA 3 LGA 178 JFK 21 LGA 16 LGA 36 LGA 6 JFK 23 LGA 27 LGA 142
Airline Delays irport Delay Report v1.8 Average Delay Your task is to create an application that would allow us2Minum Delay to extract some interesting information from flight delays recorded at two major airports of NYC -JFKWhat do you want to do? 1 and LGA. See attached the data file. Each row in the file corresponds to a delayed flight that was recorded in January 2015 for JFK and LGA. While this particular file is for January 2015, we would want to be able to use i Deay your program for different files as we get new data. Assume that the file contains at most 1000 recordsWhat do (there may be less records than that). The first column is always the 3 letter airport code of the originating airport and the space delimited second column is the departure delay encountered in minutes. 3 Flight Count Exit r uhich airport? JFK erage Delay: 39.2539 ninutes irport Delay Report v1. Flight Count Exit want to do?1 r uhich airport? LGn erage Delay: 11.3245ninutes irport Delay Report u1.8 Average Delay Maxinun Delay Flight Count Exit [50 points] Your program should read this file into What do you want to do?1 arrays. Make sure that the file exist. If the program cannot find the file, it should display an error message telling the user that the data file could not be found. r which airport? ALI erage Delay 40.4214 ninutes airport Delay Report vi. Average Delay Maxinun Delay Flight Count Exit Once the file is successfully read, your program should allow user to get the following information: hat do axinum Delay: 8.85 houra t Airport: want to do?2 [50 points] Feature #1 Average Delay: Ask user to enter an airport code. Given the airport code, report the average delay in minutes encountered for the flights 2 Maxinum De lay that originated from that airport. If user enters "ALL without quotation mark) as the airport code, you should What do you want to do? 3 report the average delay for all flights regardless of theini Delay 128 originating airport. irport Delay Report u1.8 Average Delay Exit r which airport? ALL here are 72 flights that matched the criteria irport Delay Report v1.0 (60 points] Feature #2 Maximum Delay: Report the 11- maximum delay encountered on these flights along with the airport from which that flight originated. Make sure le- Exit to report the delay in hours - note that the delays are in or hc minutes in the file, but we want to display the delay in hours for this feature only Average Delay Max nan Delay Flight Count hat do airppFt Fo JFX ininum Delay? 128 here are 33 flights that natched the criteria 60 points] Feature #3 Flight Count: Ask user to enter minimum delay in minutes and the airport code. Report the number of flights from that airport that encountered delays greater than or equal to the user specified minutes. If user enters "ALL for airport, display any flights that is delayed more than the specified number of minutes regardless of the originating airport. [30 points] Feature #0 Exit: Exit the program. Make sure that your code is commented and indented properly (-50). Make sure that each feature is in its own function (-60). Airline Delays irport Delay Report v1.8 Average Delay Your task is to create an application that would allow us2Minum Delay to extract some interesting information from flight delays recorded at two major airports of NYC -JFKWhat do you want to do? 1 and LGA. See attached the data file. Each row in the file corresponds to a delayed flight that was recorded in January 2015 for JFK and LGA. While this particular file is for January 2015, we would want to be able to use i Deay your program for different files as we get new data. Assume that the file contains at most 1000 recordsWhat do (there may be less records than that). The first column is always the 3 letter airport code of the originating airport and the space delimited second column is the departure delay encountered in minutes. 3 Flight Count Exit r uhich airport? JFK erage Delay: 39.2539 ninutes irport Delay Report v1. Flight Count Exit want to do?1 r uhich airport? LGn erage Delay: 11.3245ninutes irport Delay Report u1.8 Average Delay Maxinun Delay Flight Count Exit [50 points] Your program should read this file into What do you want to do?1 arrays. Make sure that the file exist. If the program cannot find the file, it should display an error message telling the user that the data file could not be found. r which airport? ALI erage Delay 40.4214 ninutes airport Delay Report vi. Average Delay Maxinun Delay Flight Count Exit Once the file is successfully read, your program should allow user to get the following information: hat do axinum Delay: 8.85 houra t Airport: want to do?2 [50 points] Feature #1 Average Delay: Ask user to enter an airport code. Given the airport code, report the average delay in minutes encountered for the flights 2 Maxinum De lay that originated from that airport. If user enters "ALL without quotation mark) as the airport code, you should What do you want to do? 3 report the average delay for all flights regardless of theini Delay 128 originating airport. irport Delay Report u1.8 Average Delay Exit r which airport? ALL here are 72 flights that matched the criteria irport Delay Report v1.0 (60 points] Feature #2 Maximum Delay: Report the 11- maximum delay encountered on these flights along with the airport from which that flight originated. Make sure le- Exit to report the delay in hours - note that the delays are in or hc minutes in the file, but we want to display the delay in hours for this feature only Average Delay Max nan Delay Flight Count hat do airppFt Fo JFX ininum Delay? 128 here are 33 flights that natched the criteria 60 points] Feature #3 Flight Count: Ask user to enter minimum delay in minutes and the airport code. Report the number of flights from that airport that encountered delays greater than or equal to the user specified minutes. If user enters "ALL for airport, display any flights that is delayed more than the specified number of minutes regardless of the originating airport. [30 points] Feature #0 Exit: Exit the program. Make sure that your code is commented and indented properly (-50). Make sure that each feature is in its own function (-60)

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_2

Step: 3

blur-text-image_3

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

Records And Database Management

Authors: Jeffrey R Stewart Ed D, Judith S Greene, Judith A Hickey

4th Edition

0070614741, 9780070614741

More Books

Students explore these related Databases questions