[Programming - Pascal]Hard exercise from computer science :/

    • [Programming - Pascal]Hard exercise from computer science :/

      Hi, I've got shitty exercise for Computer Science...
      I have tried to do this once and I can't...understand it...
      Can you help me with this? It is programming in Pascal.
      Who can do this exercise for me? Please I need help :/
      I will translate content into english for you.

      Here is a content:

      Source Code

      1. Pairs of Words
      2. If you have pair of words A and B, you can find the shortest word C, which contain word A and B. We can accept that words contain only signs "0" & "1".
      3. [B]Example:[/B]
      4. [I]For A = 10011101 and B = 111
      5. word C = A, because A contain word B.[/I]
      6. In text file named dane.txt do following order. Answers to sub-punkt a,b and c place in text file named [I]zad_5.txt[/I]. Results from sub-punkt d in text file named [I]slowa.txt[/I].
      7. SUB-POINTS:
      8. a)Give the answer, how much pairs of single words (A,B) in file [I]dane.txt[/I] are palindroms, answer write to file [I]zad_5.txt[/I].
      9. b)Give the answer, how much pairs of words (A,B) wrote in single verse in file [I]dane.txt[/I] have property that word B is inside word A,answer write to file [I]zad_5.txt[/I].
      10. c)Give the answer, how much pairs of words (A,B) wrote in single verse in file [I]dane.txt[/I] have property that is only one way to create word C.
      11. You must stick word A and B to create word C.
      12. d)For all of pairs of words (A, B) placed in next verses in file [I]dane.txt[/I]:
      13. • Create the shortest word C containing two words from one pair;
      14. • Write builded by you result's words C in text file [I]slowa.txt[/I], every word in single verse, in order answering pairs (A, B) from file [I]dane.txt[/I].
      Display All


      That's all...sorry for language mistakes :)

      Files to exercise:
      exterio.yoyo.pl/Files_To_Exercise.rar

      Thanks for doing this work for me, when you do this exercise and you write the program please place link under my post to it.
      Give me source code of this program.
      Program must be in PASCAL language.

      THX FOR HELP GOOD PEOPLE !!
      [FONT="Impact"]Asus X73S-TY412 USER[/FONT]

      The post was edited 3 times, last by Shishak: Language mistakes ().