The code for my Prolog assignment in programming languages