Write Prolog program for following. I wrote every thing and I need to know final two are correct or not which I wrote.
1. saman likes maths.
2. saman likes science.
3. udara likes maths.
4. fazal likes science.
5. fazal likes music.
6. geetha likes history.
7. geetha likes science.
8. geetha likes music.
9. those who like maths and science will follow engineering for advance level.
10. those who likes history or music will follow art for advance level.
Is this correct for final two?
student(X):- like(X,maths_and_science),follow(X,engineering).
student(X):- likes(X,history_or_music), follow(X,art).
I don't know how to write a Prolog queries for following.
1) Does saman like maths or music? 2) Who likes science and music? 3) who will do engineering?
Please help me.