Question: Yes, language is Prolog. I am currently using GNU PROLOG to compile it and notepad to write it. 9. (15 marks) Write a predicate to

 Yes, language is Prolog. I am currently using GNU PROLOG to

Yes, language is Prolog. I am currently using GNU PROLOG to compile it and notepad to write it.

9. (15 marks) Write a predicate to interactively compute the price for a menu. You should have at least 4 questions for menu choices, accept quantities, then compute the total amount and display it. In case the quantity required for a certain item exceeds the amount available, it should be adjusted to the maximum available and the user warned about the adjustment being made. 9. (15 marks) Write a predicate to interactively compute the price for a menu. You should have at least 4 questions for menu choices, accept quantities, then compute the total amount and display it. In case the quantity required for a certain item exceeds the amount available, it should be adjusted to the maximum available and the user warned about the adjustment being made

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!