Java Conjugation Exercise

Solved
Criquette456 Posted messages 3 Status Membre -  
Heliotte Posted messages 1561 Status Membre -
Hello,

I am just starting out in Java and I must admit that I'm really struggling to understand this language. I have a conjugation program to turn in by the end of the month, and it must go through 9 steps (with the 9th step being the program to submit to my instructor). I can't even get past the first step.

If you could help me get started, that would be awesome.

Here is the statement for step n°1:

Write a program that, given a sentence starting with a determiner, a noun, and a verb from the first group in the present tense in the third person singular, returns the sentence in the imperfect tense. For example, the sentence "Mon chien aime le chat de ma voisine." would correspond to the response: "Mon chien aimait le chat de ma voisine." Extend the previous program to include verbs from the second group and to the third person plural. For example, "Ma voisine nourrit le chat de mon frère." or "Les professeurs corrigent leurs copies d'examen."

Thank you in advance for any responses! I'm really desperate, so any help would be greatly appreciated.

Configuration: Windows 7 / Internet Explorer 9.0

2 réponses

Heliotte Posted messages 1561 Status Membre 92
 
Hello,
Start, as Celien wrote, with the processing of strings. So split the sentence into words, each word being separated by a space (let's hope).
Check that the third word is in the "dictionary" that you need to create. Finally, find its corresponding imperfect form.
And for the second part .. extend .. it's the same thing with a larger dictionary.
2
Célien Posted messages 5702 Registration date   Status Membre Last intervention   1 995
 
Hi,

It looks like string processing followed by a bit of logic.
Did you skip the programming class and the Java class?
0