Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help in my project it is about a restaurant system the code should be written in prolog language (fact , rules , query)

I need help in my project it is about a restaurant system the code should be written in prolog language (fact , rules , query)

Description:

what we want to do is a small expert system of a restaurant that enable the user to order by asking him ordinary questions

the idea of the program depends on providing a varied list of good fast food meals. for example. burger meals and pizza meals for the user, in addition, providing a feature for making suggestions which recommends a meal to user based on user preferences. such as the system will ask the user some questions and based on the user answers the system will suggest to the user a meal

******I need at least 8 queries*********

Such as a query that asks the user some questions and enable the user to write his answers and based on his answers the system will suggest the suitable meal.

here some examples of another system that suggest a music based on user personality and type, i want my restaurant system to work like this but instead it will ask the user the same ordinary question we heard when we order from any restaurant also suggest a meal based on the user choices .

image text in transcribedimage text in transcribed

SWISH Filev Edit Examples Help query1. What type is your personality?: What is your favorite type of music?: what is your current mood?: happy https://www.youtube.com/watch?v=XYk2kt8K6E true ?- query1. query2: - write('What is your personality type?: '), read(P), write('What is your current mood?: '), read(M), ( song( S,,P)> write(S); write( "I cant determin your type")), n1, write("would you like another song?"), ( read(yes) guery 2; write ("byel"))

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

What does the firms capital structure represent?

Answered: 1 week ago