I am a software engineer experienced in Prolog (I am using SWI Prolog). The screenshot you've attached is just the end of the requirements, can you please post the whole problem?
Looking forward to hearingMehr
are you from University of Alabama in Huntsville, Huntsville, Alabama U.S.A. ? That course number and "canvas" assignment is a giveaway...Be careful or your prof may find out !! If not, my bad.
Also I cannot make sMehr