Question: WRITE A SWISH PROGRAM !! Example 1: A. Write a prolog program to print a list of Strings, and test your program with the list

WRITE A SWISH PROGRAM !! WRITE A SWISH PROGRAM !! Example 1: A. Write a prolog program

Example 1: A. Write a prolog program to print a list of Strings, and test your program with the list (apple,banana,kiwi,orange] Given the list below: [(apple,5.2),(orange,3.25),(banana,5.50),(kiwi, 7.75), (apple,7.95)] B. Use length_of_list(L,R) program to find length of the list C. Use member(x,L) rule to write queries that will find the answer to the following statements: First query is given as an example, 1. List the available prices for apple Member((apple,x),((apple, 5.2), (orange, 3.25),(banana,5.50), (kiwi,7.75),(apple7.95)]) X-5.2 X= 7.95 false 2. List all available fruits 3. Show how much kiwi cost 4. List fruits that cost more than 4.00

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!