Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SHOULD BE DONE IN c++ visual studio. Airline Delays Your task is to create an application that would allow us to extract some interesting information

SHOULD BE DONE IN c++ visual studio.

Airline Delays

Your task is to create an application that would allow us to extract some interesting information from flight delays recorded at two major airports of NYC JFK 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 your program for different files as we get new data. Assume that the file contains at most 1000 records (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.

Your program should read this file into 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. Once the file is successfully read, your program should allow user to get the following information:

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 that originated from that airport. If user enters ALL (without quotation mark) as the airport code, you should report the average delay for all flights regardless of the originating airport

Feature #2 Maximum Delay: Report the maximum delay encountered on these flights along with the airport from which that flight originated. Make sure to report the delay in hours note that the delays are in minutes in the file, but we want to display the delay in hours for this feature only.

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

Feature #0 Exit: Exit the program

SHOULD BE DONE VISUAL STUDIO.

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

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

What Is A Database And How Do I Use It

Authors: Matt Anniss

1st Edition

1622750799, 978-1622750795

More Books

Students also viewed these Databases questions

Question

how would you have done things differently?

Answered: 1 week ago