Question: C# Question Create a program for Smalltown Regional Airport Flights that accepts either an integer flight number or string airport code from the image below:
C# Question
Create a program for Smalltown Regional Airport Flights that accepts either an integer flight number or string airport code from the image below:

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 201 was input, the output would be: Flight #201 AUS Austin Scheduled at: 0710 (note that there should be two spaces between 'Austin' and 'Scheduled').
The method version that accepts an integer looks up the airport code, name, and time of flight; the version that accepts a string description looks up the flight number, airport name, and time.
The methods return a message if the flight is not found. For example, if 100 was input, the output should be Flight #100 was not found.
/* Here is the Class and and overload methods the question is requiring */
using static System.Console; class Flights { static void Main() { // Write your main here } public static string GetFlightInfo(int flight, int[] flightNumbers, string[] codes, string[] names, string[] times) { } public static string GetFlightInfo(string code, int[] flightNumbers, string[] codes, string[] names, string[] times) { }
}
Flight number 201 321 510 633 Figure 8-33 Flight information for Smalltown Regional Airport Airport code AUS CRP DFW HOU Airport name Austin Corpus Christi Dallas Fort Worth Houston Time 0710 0830 0915 1140
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
