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)
The question seems incomplete and scattered It looks like there are instructions for a programming a... 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.
-
Job-cost records for Peter Construction contained the following data: Compute Peters (1) WIP Inventory at May 31, (2) Finished-Goods Inventory at May 31, and (3) Cost of Goods Sold for May. Dates Job...
-
Locate the center of gravity xc of the homogeneous rod. If the rod has a weight per unit length , determine the vertical reaction at A and the x and y components of reaction at the pin B. Given: =...
-
What is the expectations gap?
-
Comfi Airways, Inc., a small two-plane passenger airline, has asked for your assistance in some basic analysis of its operations. Both planes seat 10 passengers each, and they fly commuters from...
-
The given code snippet is implemented using linear probing technique, what change you have to make so that the quadratic probing is implemented. @Override public boolean put(String word, String...
-
Lexington Corporation acquired all of the outstanding common stock of Chalfont, Inc., on January 1, 2016. Lexington gave shares of its no par common stock with a market value of $504 million in...
-
A body is moved from rest along straight line by a machine delivering a constant power. Time taken by body to travel a distance "S" is proportional to (1) S13 (2) S23 (3) S12 (4) S14
-
7. The Josephus Problem asks where to start taking out every kth person in the circle consisting of n people, such that you are the last "survivor". The decrease and conquer recurrence relation is...
-
Assume the current risk free rate is 2%. and the equity market risk premium is 6.25%. Also, consider two companies. The first has a Beta of 1.5; the second - Washington Electric has a beta of .85....
-
1. Convert the following scale to other two types. I. II. III. IV. 20 0 10 0 1:900,000 0 50 1 cm=500,000 km 20 15 Kilometers 40 20 Miles 100 Miles 30 60 150 80 100 200
-
A non-VAT registered radio broadcasting company collected a total of P 800 000 during a month, Compute the output VAT.
-
Sonia is employed as an IT consultant by Tech Innovation Ltd (TIL), a technology firm in Auckland. Her remuneration package includes a cash salary of $190,000 per year and several other benefits,...
-
Find the values of x and x2 where the following two constraints intersect. (Negative values should be indicated by a minus sign. Round your answers to 3 decimal places.) (1) 12x1 + 11x2 2 56 (2) 3x1...
-
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?
-
What can a multinational firm do to reduce the level of stress that expatriates may feel as a result of real or perceived terrorist threats? Explain. One of the concomitants of international...
-
Form an even number of teams of five members each, with one pro team and one con team working for the same university. The pro team is asked to defend the advantage of opening a branch campus, while...
-
Research some recent articles dealing with the recent push by U.S. universities to start training foreign students abroad. Based on what you have read, what would you conclude in terms of the...
Study smarter with the SolutionInn App