Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task B: Airports Management Implement a Windows Forms Application (.NET framework) in C# (with a GUI) which allows users to: Insert an airport by using

image text in transcribed
image text in transcribed
Task B: Airports Management Implement a Windows Forms Application (.NET framework) in C# (with a GUI) which allows users to: Insert an airport by using its code (assume the airport code is a string, see Figure 1 below) - Insert/Remove a direct connection (i.e., direct flight) between two airports given their codes (see Figure 1 below) - Display the codes of the airports that can be reached from a starting airport by either using direct or connecting flights. In this case, allow the user to insert the starting airport and specify if interested in only direct or both direct and connecting) types of flights. In your screencast, test the application on the airports shown in Figure 1 (below). Hints to complete the task: To implement the application you will need to use and adapt the classes and the methods) of Graph and Graph Node seen in the lecture/lab to be able to store the code of the airports (string) as ID of the nodes. To implement the removal of an edge, check how we did the addition of an edge. For the last point ("Display the codes of the airports that can be reached...") use the idea of graph traversal. Start from the starting code for the DFS that you can find on the lab slides (remember that in this task the ID of a node is a string). The method to implement the DFS needs to be in the class Graph. On the GUI you may use a checkbox to allow the user to specify if interested in only direct or both (direct and connecting) types of flights. of graph traversal. Start from the starting code for the DFS that you can find on the lab slides (remember that in this task the ID of a node is a string). The method to implement the DFS needs to be in the class Graph. On the GUI you may use a checkbox to allow the user to specify if interested in only direct or both (direct and connecting) types of flights. bru mad Icy waw cdg mxp lis ams lux ber Figure 1 The graph shows a set of airports (identified by their code, which is a string) and the established direct connections (i.e., representing direct flights). A direct connection (i.e., direct flight) between the two airports is denoted by a directed edge. e.g., there is a direct flight going from cdg to lis, but there is no direct flight going from lis to cdg. Airport codes (cgd, lis, etc..) are strings. Starting from lux (i.e., starting airport) one can reach (by using direct or connecting flights): ams, cdg, lis. On the other hand, starting from lux (i.e., starting airport) one can reach (by using only direct flights): ams

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

Visual Basic 4 Ole Database And Controls Superbible

Authors: Michael Hatmaker, C. Woody Butler, Ibrahim Malluf, Bill Potter

1st Edition

1571690077, 978-1571690074

More Books

Students also viewed these Databases questions

Question

Choosing Your Topic Researching the Topic

Answered: 1 week ago