Hello,
I use Prolog programming daily in my regular employment.
I will provide Prolog solutions for Prolems 1 and 3 provided as an attachment in the chat.
The client will provide a working solution for Problem 2, plus the 3 variants to be used for Problem 3.
Btw, the Example you provided for Problem 2 is close, but not correct (when it ends).
A milestone payment for the full budget for this project must be deposited with this site before your offer can be accepted.
Alan Idler
Chief Software Architect
Idleswell Software Creations