Question: Create a C# program in Visual Studios Console App Project for an airline company that accepts either an integer flight number or string airport code

Create a C# program in Visual Studios Console App Project for an airline company that accepts either an integer flight number or string airport code from the options in the following chart:

Flight Number Airport Code Airport Name

Time

201 AUS Austin 0710
321 CRP Corpus Christi 0830
510 DFW Dallas Fort Worth 0915
633 HOU Houston 1140

Pass the users entry to one of two overloaded GetFlightInfo() methods, and then display a returned string with all the flight details. For example, if the input was 201, the output would be: Flight #201 leaves Austin (AUS), scheduled at 0710.

The method version that accepts the integer should look up the airport code, airport name, and time of flight. The method version that accepts a string code should look up the flight number, airport name, and time of flight. The methods should return an appropriate message if the flight is not found. For example, if the input was 101, the output should be: Flight #100 is not a scheduled flight.

Please add comments so I can better understand, Thank You.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!