Write a prolog program which defines the predicate fib i x


Problem

1. Write a PROLOG program which defines the predicate fib (I, X), where I is a positive integer and X is the I- Fibonacci number. Remember that the first two Fibonacci numbers are 0 and 1, and any other Fibonacci number is the sum of the two Fibonacci numbers that precede it.

2. Take the list of courses offered by the Computer Science Department and the recommended prerequisites. Write a PROLOG application that can answer questions on the curricula; in particular, it should able to check whether a certain course sequence conforms to the recommendations.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a prolog program which defines the predicate fib i x
Reference No:- TGS02680064

Expected delivery within 24 Hours