comp.lang.ada
 help / color / mirror / Atom feed
* Hi, I'm new to ADA
@ 2003-02-07 16:31 Paul Gregory
  2003-02-07 17:31 ` James S. Rogers
  2003-02-07 18:11 ` Preben Randhol
  0 siblings, 2 replies; 13+ messages in thread
From: Paul Gregory @ 2003-02-07 16:31 UTC (permalink / raw)


I'm a complete novice as all you guys once were in terms of ADA and I've

been given a small school project to do. I'm sure as a novice you
experienced many frustrations and difficulties along the way !

As you people are probably the best people to ask I was wondering if any
of you could give me any tips as to how
to go about the following:

---------------------------------------------------------
---------------------------------------------------------
The task

You are invited to design and implement a translation program which will

take an English sentence and translate it into French (and optionally
translate from French
to English).

Your program will use a simple dictionary containing the following
words:

                                                       English
                                                              French
                                                       big
                                                              grand
                                                       black
                                                              noir
                                                       cat
                                                              chat
                                                       dog
                                                              chien
                                                       is
                                                              est
                                                       small
                                                              petit
                                                       the
                                                              le
                                                       white
                                                              blanc


Example 1

Do you wish to add words to the dictionary?: N

Please enter a sentence:
The cat is white.

The French translation of your sentence is:
Le chat est blanc.

Example 2

Do you wish to add words to the dictionary?: N

Please enter a sentence:
The cat is dead.

I cannot translate that sentence.

Example 3

Do you wish to add words to the dictionary?: Y
English word: horse
Equivalent French word: cheval

Do you wish to add more words?: N

Please enter a sentence:
Le cheval est grand.

The English translation of your sentence is:
The horse is big.

----------------------------------------------------------------------------

----------------------------------------
I know you all have far more important things to be getting on with but
any
advice would be brilliant !

Many thanks,

Paul.







^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2003-02-09  6:37 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-07 16:31 Hi, I'm new to ADA Paul Gregory
2003-02-07 17:31 ` James S. Rogers
2003-02-07 17:40   ` Vinzent Hoefler
2003-02-09  0:59     ` AG
2003-02-08  4:52       ` sk
2003-02-09  5:35         ` AG
2003-02-08 22:12           ` Avec son chapeau à la con (Was: Hi, I'm new to ADA) Ludovic Brenta
2003-02-09  6:37   ` Hi, I'm new to ADA Robert I. Eachus
2003-02-07 18:11 ` Preben Randhol
2003-02-07 18:37   ` Vinzent Hoefler
2003-02-08 10:25     ` Preben Randhol
2003-02-09  1:06   ` AG
2003-02-08 15:42     ` James S. Rogers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox