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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started