65 638
Assignments Done
99,2%
Successfully Done
In October 2018

Answer to Question #45591 in Prolog for Jack

Question #45591
Doing a wait or not wait for restaurant seat
The Decision Tree
http://oi62.tinypic.com/rr850n.jpg

Code here.
http://pastebin.com/KVuUTBGk

Question:
I want to add a summary of the results output like
example(yes, [Pat=full, WaitEstimate=30-60, Alt=no, Reservation=no, Bar=yes]).

If I enter the results as below

?- patrons.
What is the size of the Patrons?
|: full.
What is the estimate waiting time?(write in minutes, ex:50)
|: 60.
Is there any alternative?
|: no.
Have you made any reservation?
|: no.
Do they offer a comfortable bar area for customer to wait in?
|: yes.
Your decision is to wait!
true.
Expert's answer

Not answered

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions