Applying Logical Knowledge
Eclipse Exercises
Exercises
- Import the course_singles project.
Interpreted Single File.
- Open pricer_1.pro.
- Run pricer_1.pro as interpreted single file.
- In listener, enter the query goal 'main':
?- main.
- Enter query to price a single call:
?- price_call(4, X).
- Quit the listener.
- In the editor, add a 6th phone call.
- Save and run main again.
Debugged Single File
- Run as debugged single file.
- Enter query to price a single call:
?- price_call(4, X).
- Step through the execution.
- Quit the debugger.
- Close the project.
Interpreted Project
- Import course_pricer_2.
- Open source files.
- Run as interpreted project.
- In listener, enter the query goal 'main':
?- main.
- Quit the listener.
- Close editors and project.