Starting from:

$30

CECS 342 Programming Assignment 4 Solved



CECS 342-

Assignment 4
Homework 5
1.     Download and install an IDE for Prolog, e.g. SWI-Prolog at https://www.swi-prolog.org,
or use the online Prolog REPL SWISH at https://swish.swi-prolog.org.

2.     Start reading the Prolog tutorial at
http://www.learnprolognow.org/lpnpage.php?pageid=online.

Lab Assignment 5: Logic Puzzle
Write a Prolog program to solve the logic puzzle “Star Tricked”.

You will need a way of writing facts that occurred earlier in the week. You can use simple clauses like earlier(tuesday, wednesday). Or you can encode days as numbers and use arithmetic, then translate the output.

 

1 of 2

Deliverable
1.     You can work on this assignment in a group of up to 6 students.

2.     At the due date you will take a brief quiz to test your understanding of the assignment.

3.     During the lab session on the due date each group will do

1.     A brief demonstration of the running applications.

2.     A presentation explaining the source code.

4.     Due date beginning of lecture.


More products