Question: c# a program for Smalltown Regional Airport Flights that accepts either an integer flight number or string airport code from the options in Figure 8
c# a program for Smalltown Regional Airport Flights that accepts either an integer flight number or string airport code from the options in Figure
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 was input, the output would be: Flight # AUS Austin Scheduled at: 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 was input, the output should be Flight # was not found.
If no flights were scheduled for the airport code entered, for example MCO, the message displayed should be Flight to MCO was not found.
Figure
Examples of the program are shown below:
Please enter flight number or airport code MIA Flight to MIA was not found
Please enter flight number or airport code AUS Flight # AUS Austin Scheduled at:
Please enter flight number or airport code Flight # DFW Dallas Fort Worth Scheduled at:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
