Find a path from origin city to destination city

Assignment Help Computer Engineering
Reference no: EM132104958

Problem Description:

C++ programming

The Flying Traveller Airline Company (FTAir) wants a program to process customer requests to fly from some origin city to some destination city.

For each customer, indicate whether a sequence of FTAir flights from the origin city to the destination city exists and produce the itinerary - sequence of flights. Input: Three input text files that specify all the flights information as follow:

• The names of cities that FTAir serves (at least 15 cities).

• Pairs of city names; each pair represents the origin and destination of one of FTAir's flights.

• Pair of city names; each pair represents a request to fly from some origin city to some destination (at least 5 requests with different scenarios). Each request considered a one-way flight.

Rules:

• Find a path from origin city to destination city, if exists.

• Maintain information about the order in which it visits the cities.

• Do not visit a city more than once.

• If there are multiple paths, you may list them all and find least visited cities. (optional).

note:

-using stack and recursion(2 in one program)

-linked list

Reference no: EM132104958

Questions Cloud

What is the accounting rate of return : The machine has an expected life of 9 years and no salvage value. The company anticipates a yearly net income of $60,000 after taxes of 30% to be received unifo
Write an assembly program to read an integer : Write an assembly program to read an integer and count the number of ‘1' bits in it's binary representation. Label and print the output.
Write a java program to calculate and display : Two months later, the person sold the numberShares shares at sellPrice per share and paid another $15 for the transaction.
How would you set that in an excell document : What costs are relevant to each of the three alternatives: offshoring, relocating functions, and automating functions?
Find a path from origin city to destination city : The Flying Traveller Airline Company (FTAir) wants a program to process customer requests to fly from some origin city to some destination city.
Write a program using a stack abstract datatype : Write a program using a stack abstract datatype to get the correct count for the trees in different parts of the jungle.
How would the variable cost change : Contribution of each unit toward covering fixed cost is (sales-variable costs)/units sold. In the following how do I calculate it when this company makes
Blue sea bhd makes travelling bags : Blue Sea Bhd makes travelling bags. The costs incurred during September 2016 for the following are:
Show the popularity of a baby name for a particular year : They have supplied you with baby name popularity data from 2006 to 2010. The application should ask the user for a Year, Gender, and Name.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Write quorum that are permitted by the voting algorithm

A file is replicated on 10 servers. List all the combinations of read quorum and write quorum that are permitted by the voting algorithm.

  How to define a class named document

express a class named Document that contains an instance variable of type String named text that stores any textual content for the document. Create a method named toString that returns the text field and also include a method to set this value.

  Identify which recovery strategies is most appropriate

Of the strategies of shared-site agreements, alternate sites, hot sites, cold sites, and warm sites, identify which of these recovery strategies is most.

  What is the queuing delay of the second packet

A packet switch receives a packet and determines the outbound link to which the packet should be forwarded.

  Generate queries for new database

Generate Queries for New Database

  Why does a slider emit change events and not action events

Why does a slider emit change events and not action events? Why does a timer require a listener object?

  Give an example using the preceding system for transaction

Give an example using the preceding system for each of the following file types: master, look-up, transaction, audit, and history. What kind of information would each file contain and how would the file be used?

  Compare the security requirements of rail and road networks

Road and pipeline resources are critical elements. Compare and contrast the security requirements of rail, road, and pipeline transportation networks.

  Designing a web-based system for airline

Explain each section of dialogue box. Consider, you are designing a web-based system for an airline. Design the dialog diagram for some sample screens which users will require to navigate through (you must have about five screens and four levels).

  Evaluate the efficiency and accuracy of storage techniques

Evaluate the efficiency, speed, and accuracy of the storage and retrieval techniques that two search engine organizations currently use.

  Recognize trends in mobile software development and

imagine you are employed as a senior software engineer in a company that designs and produces mobile software

  What is the maximum directly addressable memory

A microcontroller with 24 address pins and eight data pins is connected to a 1K × 8 memory with one enable. How many unused address bits of the microcontroller.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd