Getting Started -- Clauses and Predicates -- Satisfying Goals -- Operators and Arithmetic -- Input and Output -- Loops -- Preventing Backtracking -- Changing the Prolog Database -- List Processing -- String Processing -- More Advanced Features.Logic Programming is the name given to a distinctive style of programming, very different from that of conventional programming languages such as C++ and…