Air Canada, the nation's flag carrier was founded in 1937 by the Canadian Parliament. It was...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Air Canada, the nation's flag carrier was founded in 1937 by the Canadian Parliament. It was first known as Trans-Canada Airlines and did not assume the current name until 1965. Throughout its history Air Canada's routes (pictured below, source: Air Canada) have constantly expanded to include a wide array of international and domestic locations. In graph terms each airport is a vertex (node) and each route is a directed edge. EX POST HAND TOD Transport Canada designates 13 airports as international airports: Airport Name Calgary International Airport Edmonton International Airport Fredericton International Airport Gander International Airport Halifax Stanfield International Airport Greater Moncton Roméo LeBlanc International Airport 1 Montréal-Trudeau International Airport Ottawa Macdonald-Cartier International Airport Québec/Jean Lesage International Airport St. John's International Airport Toronto Pearson International Airport Vancouver International Airport Winnipeg International Airport Code YYC YEG YFC YQX YHZ YQM YUL YOW YOB YYT YYZ YVR YWG W Air Canada, the nation's flag carrier was founded in 1937 by the Canadian Parliament. It was first known as Trans-Canada Airlines and did not assume the current name until 1965. Throughout its history Air Canada's routes (pictured below, source: Air Canada) have constantly expanded to include a wide array of international and domestic locations. In graph terms each airport is a vertex (node) and each route is a directed edge. Transport Canada designates 13 airports as international airports: Airport Name Calgary International Airport Edmonton International Airport Fredericton International Airport Gander International Airport Halifax Stanfield International Airport Greater Moncton Roméo LeBlanc International Airport Montréal-Trudeau International Airport. Ottawa Macdonald-Cartier International Airport Québec Jean Lesage International Airport St. John's International Airport Toronto Pearson International Airport Vancouver International Airport Winnipeg International Airport Code YYC YEG YFC YOX YHZ YQM YUL YOW YQB YYT YYZ YVR YWG The route map of Air Canada can be repereseted as a graph using an adjacency list. We can assume that all Air Canada flights from Canada will originate from one the aforementioned 13 airports. Our goal is to create a graph that will help find routes for passengers. You can add destinations/return flights to these airports as you please (they do not have to be real routes). class AirportNode! public string Name get; set;//property for name field. public string Code (get: set /property for code field. public List Airport Node Destinations (get, set;}//property for list of destinations. public AirportNode(string name, string code) //constructor 5% AddDestination (AirportNodedestAirport) //method to add destination. 5% Remove Destination (AirportNode destAirport)./method to remove destination: 5% ToString()//ToString method overload to print out airport name, code, and list of deestinations. 5% } class RouteMap private List Task 1: Implement each of the classes with their corresponding fields, properties, constructors, and methods. Keep the following in mind: Each route is directed. Only one route can exist between two airports. For example, Toronto Pearson can only appear in Calgary International Airport's destination list once. A ToString method for the RouteMap will help! Task is worth 55% in total. Task 2: Using a breadth first search, implement a method named FastestRoute(AirportNode origin, AirportNode Destination) which outputs the shortest path between two given airports. 15% Task 3: Implement a main method (not necessarily a main method anymore after .NET 6 I suppose) to create your own Route Map and to drive your test cases. 5% Task 4: Draw your own connected Route Map and prepare your test cases. Include the map, test cases, and test results in a separate .pdf test document. 20% Air Canada, the nation's flag carrier was founded in 1937 by the Canadian Parliament. It was first known as Trans-Canada Airlines and did not assume the current name until 1965. Throughout its history Air Canada's routes (pictured below, source: Air Canada) have constantly expanded to include a wide array of international and domestic locations. In graph terms each airport is a vertex (node) and each route is a directed edge. EX POST HAND TOD Transport Canada designates 13 airports as international airports: Airport Name Calgary International Airport Edmonton International Airport Fredericton International Airport Gander International Airport Halifax Stanfield International Airport Greater Moncton Roméo LeBlanc International Airport 1 Montréal-Trudeau International Airport Ottawa Macdonald-Cartier International Airport Québec/Jean Lesage International Airport St. John's International Airport Toronto Pearson International Airport Vancouver International Airport Winnipeg International Airport Code YYC YEG YFC YQX YHZ YQM YUL YOW YOB YYT YYZ YVR YWG W Air Canada, the nation's flag carrier was founded in 1937 by the Canadian Parliament. It was first known as Trans-Canada Airlines and did not assume the current name until 1965. Throughout its history Air Canada's routes (pictured below, source: Air Canada) have constantly expanded to include a wide array of international and domestic locations. In graph terms each airport is a vertex (node) and each route is a directed edge. Transport Canada designates 13 airports as international airports: Airport Name Calgary International Airport Edmonton International Airport Fredericton International Airport Gander International Airport Halifax Stanfield International Airport Greater Moncton Roméo LeBlanc International Airport Montréal-Trudeau International Airport. Ottawa Macdonald-Cartier International Airport Québec Jean Lesage International Airport St. John's International Airport Toronto Pearson International Airport Vancouver International Airport Winnipeg International Airport Code YYC YEG YFC YOX YHZ YQM YUL YOW YQB YYT YYZ YVR YWG The route map of Air Canada can be repereseted as a graph using an adjacency list. We can assume that all Air Canada flights from Canada will originate from one the aforementioned 13 airports. Our goal is to create a graph that will help find routes for passengers. You can add destinations/return flights to these airports as you please (they do not have to be real routes). class AirportNode! public string Name get; set;//property for name field. public string Code (get: set /property for code field. public List Airport Node Destinations (get, set;}//property for list of destinations. public AirportNode(string name, string code) //constructor 5% AddDestination (AirportNodedestAirport) //method to add destination. 5% Remove Destination (AirportNode destAirport)./method to remove destination: 5% ToString()//ToString method overload to print out airport name, code, and list of deestinations. 5% } class RouteMap private List Task 1: Implement each of the classes with their corresponding fields, properties, constructors, and methods. Keep the following in mind: Each route is directed. Only one route can exist between two airports. For example, Toronto Pearson can only appear in Calgary International Airport's destination list once. A ToString method for the RouteMap will help! Task is worth 55% in total. Task 2: Using a breadth first search, implement a method named FastestRoute(AirportNode origin, AirportNode Destination) which outputs the shortest path between two given airports. 15% Task 3: Implement a main method (not necessarily a main method anymore after .NET 6 I suppose) to create your own Route Map and to drive your test cases. 5% Task 4: Draw your own connected Route Map and prepare your test cases. Include the map, test cases, and test results in a separate .pdf test document. 20%
Expert Answer:
Answer rating: 100% (QA)
1 Implement the Route class csharp public class Route public AirportNode Source get set public Airpo... View the full answer
Related Book For
Organizations Behavior, Structure, Processes
ISBN: 978-0078112669
14th Edition
Authors: Gibson, Ivancevich, Donnelly, Konopaske
Posted Date:
Students also viewed these electrical engineering questions
-
American Household, SM Inc., produces a wide array of home safety and security products. One of its products is the First Alert SA302 Dual Sensor Remote Control Smoke Alarm. As part of its quality...
-
This healthcare organization provides a wide array of services including inpatient services, transitional care services, and outpatient treatment and testing. A few years ago, the facility changed...
-
Consumers can choose from a wide array of electricity, gas, water, broadband and TV service providers. United Overseas Bank (UOB) launched an online utility marketplace which it claims to be a first...
-
is an acute angle such that tan() =1/3. What is the value of 1010. (sin + cos)? 3.
-
The following chart shows how costs flow through a business as a product is manufactured. Some boxes in the flowchart show cost amounts. Compute the cost amounts for the boxes that contain question...
-
Why is it so difficult to compare industrial relations systems in different countries?
-
Provide one example of a question addressed by each of the three environmentally differentiated conventional accounting systems. What distinguishes each of these examples from the questions addressed...
-
A fire recently destroyed a substantial portion of Manley Companys production capacity. It will be many months before capacity can be restored. During this period, demand for the firms products will...
-
The time value of money is defined as the math of finance for which interest is earned over time by saving or investing money. With this definition in mind and considering your readings for this...
-
Forecasting with the Parsimonious Method and Estimating Share Value Using the ROPI Model Following are income statements and balance sheets for Cisco Systems. Cisco Systems Consolidated Statements of...
-
Go to the given link: https://www.aetna.com/. Of Aetna organization 1. Critique the organizations translation and interpretation services that may be available to non-English-speaking patients. In...
-
Swifty Company has an old factory machine that cost $52,000. The machine has accumulated depreciation of $29,120. Swifty has decided to sell the machine. (a) Prepare a tabular summary to record the...
-
Discuss how deadlock scenarios can arise in transactional database systems, particularly in the context of concurrent transactions. What are the common techniques used by database management systems...
-
Explain the relationship between concurrency and deadlock. In what ways does increased concurrency in a system contribute to the risk of deadlock, and what mechanisms can be employed to ensure that...
-
Both firms are 100% equity-financed. Firm A can acquire firm B for $82,500 in the form of either cash or stock. The synergy value of the deal is $12,500. Number of Shares Price per Share Firm A...
-
Kapono Farms exchanged an old tractor for a newer model. The old tractor had a book value of $15,000 (original cost of $34,000 less accumulated depreciation of $19,000) and a fair value of $9,600....
-
Question 1 The motion of the composition is shown as x3 (t) = x(t) x (t) Where Case 1: x(t) = 4 sin(3t /3), x (t) = 3sin(4t + 2) . Case 2: x(t)=2 sin( at +1.5), x (t) = 2 sin( t + 2) . Try to...
-
Archangel Corporation prepared the following variance report. Instructions Fill in the appropriate amounts or letters for the question marks in the report. ARCHANGEL CORPORATION Variance...
-
Why did Toyota wait so long to publically acknowledge and replace the faulty accelerator pedals? Toyota is an extremely successful automaker that has built a reputation for quality by fostering a...
-
The sponsorship game has also been referred to, in a more negative tone, as riding someones coattails. Why do you think some view this game in a negative way?
-
Why should managers not counsel or provide advice to any employee suspected of being depressed?
-
A flywheel rotating freely at \(1800 \mathrm{rev} / \mathrm{min}\) clockwise is subjected to a variable counterclockwise torque which is first applied at time \(t=\) 0 . The torque produces a...
-
A wheel of radius \(r\) rolls on a flat surface without slipping. Determine the angular motion of the wheel in terms of the linear motion of its center \(O\). Also determine the acceleration of a...
-
The right-angle bar rotates clockwise with an angular velocity which is decreasing at the rate of \(4 \mathrm{rad} / \mathrm{s}^{2}\). Write the vector expressions for the velocity and acceleration...
Study smarter with the SolutionInn App