r/prolog • • Apr 07 '19

GNU Prolog

Hi, guys. I have problems with Prolog. Can anyone help me with this tasks? I'm really retard and can't solve this on GNU Prolog. I know that it is a blatant request but I have a deadline in university so I need some help.

  1. Create a predicate that calculates the number of numbers less than the arithmetic mean of all numbers from file

2)Create a predicate that forms from the text stored in the file a list of words that contain duplicate characters

3)Create a predicate supplementing all the lines stored in the file with the symbol "*" up to the longest line.

I will be very grateful if someone will help me. If you want I can present some game from steam like, for example,The Binding of isaac :)

Sorry for my English

0 Upvotes

0 comments sorted by