9618/31 May/June 2024 · Question 8(c) · 4 marks
F may be available for B if F is a feature and B is a body style and F is not unavailable for that body style. Write this as a rule: may_choose_option(F, B).
Points that gain marks
- feature(F)
- bodystyle(B)
- NOT unavailable(F, B)
- All the operators and punctuation right (a comma is fine for AND), and nothing extra.
- For example: may_choose_option(F, B) IF feature(F) AND bodystyle(B) AND NOT unavailable(F, B).
In this lab: Level 8 runs your rule on the whole knowledge base and shows every answer it gives, so you can see what a missing NOT does.