s_tharsan
05-05-2004, 06:46 PM
Hi, I have an assignment in my programing class and i have no idea how to do it. I was wondering if someone could help me with it. Were using java and textpad to creat applets. This is what we have to do:
The King of Id
The King of Id likes to think that he and his kingdom are most important. To that end he has decided that:
1. The only four letter word should be Fred (the kings name, note that it ends in "ed")
2. All words that end in the letters "ed" (except the king's name) should instead end in letters "id"
you have been hired by the King to write an applet that will help the loyal subjects of id translate any text to the new standards. you are to design an attractive applet and web page using the BorderLayout manager that will input a sentence or phrase and output the same in UPPERCASE "idspeak".
FOR EXAMPLE THE SENTENCE: The cook worked longhours in the darkened kitchen
WOULD BECOME: HE FRED WORID FRED HOURS IN THE DARKENID KITCHEN
Fred looked well = FRED LOOKID FRED
Thanks in advance :)
The King of Id
The King of Id likes to think that he and his kingdom are most important. To that end he has decided that:
1. The only four letter word should be Fred (the kings name, note that it ends in "ed")
2. All words that end in the letters "ed" (except the king's name) should instead end in letters "id"
you have been hired by the King to write an applet that will help the loyal subjects of id translate any text to the new standards. you are to design an attractive applet and web page using the BorderLayout manager that will input a sentence or phrase and output the same in UPPERCASE "idspeak".
FOR EXAMPLE THE SENTENCE: The cook worked longhours in the darkened kitchen
WOULD BECOME: HE FRED WORID FRED HOURS IN THE DARKENID KITCHEN
Fred looked well = FRED LOOKID FRED
Thanks in advance :)