Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

help in one prolog program! - assign2e.pro (0/1)

38 views
Skip to first unread message

foxin

unread,
Jul 2, 2000, 3:00:00 AM7/2/00
to
i am facing a problem in doing my assignment using turbo Prolog 2.0
can anyone give me advice on how to solve this problem, i have been
despaired to work out on it after the whole day's trying.........

my question is like that:


***********************************************************************
The pizza-House chalkboard that list various types of pizza with their
ingredients and prices was wiped out by the rain. You are required to
rewrite the board using the following information.

There are 5 types of pizza with completely different toppings and
prices. Each type of pizza has 2 toppings: one from the list of
ham,mussels,prawns,salami, and tuna. the other one from the list of
avocado,corn,olive,pineapple, and tomato. 5 prices are 5.00, 6.50,
7.00, 8.50 and 10.00.

other clues are given below:

-Hawaiian pizza has mussels and cost over 6.50
-Marco-Polo has tomato, but no ham, which is on the pizza that cost
8.50
-Pepperoni costs 7.00 and Super-Supreme has no pineapple
-The price of the pizza that has tuna and corn is not 6.50, and the
pizza that cost 5.00 has olive but no salami.
-The price of the pizza that has pineapple is not 10.00
-The last type of pizza is called Ninja-pizza.

You need to determine which pizzas have what toppings and prices.

***********************************************************************
hereby i attach my own "wrong" answer for it, please help


thanks in advance.

Shee See Kiong
Malaysia

0 new messages