DriverHeaven.net

 
Looking for the skin chooser?
 
 
  • Home

  • Reviews

  • Articles

  • News

  • Tools

  • GamingHeaven

  • Forums

  • Network

 

Go Back   DriverHeaven.net > Forums > Software / Tools > Programming, Coding, (Web)Design


Reply
 
LinkBack Thread Tools
Old Jun 5, 2009, 10:01 AM   #1
DriverHeaven Newbie
 
Join Date: Mar 2009
Location: Poland
Posts: 14
Rep Power: 0
PenrynHD is on a distinguished road

exclamation [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:

Code:
Pairs of Words
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".

Example:
For A = 10011101 and B = 111
word C = A, because A contain word B.

In text file named dane.txt do following order. Answers to sub-punkt a,b and c place in text file named zad_5.txt. Results from sub-punkt d in text file named slowa.txt.

SUB-POINTS:
a)Give the answer, how much pairs of single words (A,B) in file dane.txt are palindroms, answer write to file zad_5.txt.

b)Give the answer, how much pairs of words (A,B) wrote in single verse in file dane.txt have property that word B is inside word A,answer write to file zad_5.txt.

c)Give the answer, how much pairs of words (A,B) wrote in single verse in file dane.txt have property that is only one way to create word C. 
You must stick word A and B to create word C.

d)For all of pairs of words (A, B) placed in next verses in file dane.txt:
• Create the shortest word C containing two words from one pair;
• Write builded by you result's words C in text file slowa.txt, every word in single verse, in order answering pairs (A, B) from file dane.txt.
That's all...sorry for language mistakes

Files to exercise:
http://www.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 !!
__________________
PenrynHD is offline   Reply With Quote


Old Jun 18, 2009, 07:55 PM   #2
Bang. Bang. Bang.
 
Mousey's Avatar
 
Join Date: Jan 2007
Location: United Kingdom
Posts: 5,421
Rep Power: 105
Mousey has a reputation beyond refuteMousey has a reputation beyond refuteMousey has a reputation beyond refuteMousey has a reputation beyond refuteMousey has a reputation beyond refuteMousey has a reputation beyond refuteMousey has a reputation beyond refuteMousey has a reputation beyond refuteMousey has a reputation beyond refuteMousey has a reputation beyond refuteMousey has a reputation beyond refute
System Specs

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

You really think someone will code this for you? I'm sorry but that won't be happening.
Don't get me wrong, i'm no programmer but the whole idea of your course is to learn, henceforth you need to do your own work.

People could probably help you though
__________________
Visit hardWIRED - Back up and running, The Wiki is back

Who we are, is but a stepping stone to what we can become.
Mousey is offline   Reply With Quote
Reply

Bookmarks

Thread Tools