Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 1.1 KB

README.md

File metadata and controls

18 lines (13 loc) · 1.1 KB

Trip-Advisor

About

Program in Prolog which advises someone who wants to travel by plane between two cities on a specific day.

Program Functionality

  1. Loads a flight table. Loads the flight schedule which is in another file (and not in the program itself). It's name will be requested by the user with this option and will be loaded from disk to memory. If the user selects the same option and give a different flight log name, the new flight data should added to the old
  2. Travel between two cities on a specific day. Prints all solutions(routes). Cities and day is given by the user.
  3. Best route between two cities on a specific day. Prints only the best solution. Cities and day is given by the user.

Usage

A file named flights.pl must be included in the same firectory as the program.pl in order for the program to run properly. The flights.pl file must contain the fligh schedule with the details of each possible flight (see events listed in flights.pl).

Examples

Here are some examples of how to run the program in prolog Image description Image description