Programming Homework Help

Programming Homework Help. Prolog assignment

Hunter, Laura, Jim, Sally, and Jack work in the same building with five
adjacent offices. Hunter doesn’t work in the 5th office and Laura doesn’t
work in the first office. Jim doesn’t work in the first or last office, and he is
not in an office adjacent to Jack or Laura. Sally works in some office higher
than Laura’s. Who works in what offices?

Write a Prolog program to solve this problem.
Define what adjacency is, then what the offices are, and then create a layout(X) that
allows you to put in all the rules.

Each person is put into an office that doesn’t break any of the rules given.

Output answer that mine outputs in the attachment

Programming Homework Help

 
"Our Prices Start at $11.99. As Our First Client, Use Coupon Code GET15 to claim 15% Discount This Month!!"