View Full Version : need help with a java program


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 :)

MaGiCSuN
05-05-2004, 06:54 PM
just curious: with Java do you mean javascript or just java?

Love,
Mirna

jtchange
05-05-2004, 07:24 PM
i believe this is Java because they are talking about creating an applet, which is a web-based Java program....I don't know anything about Java...

MaGiCSuN
05-05-2004, 07:26 PM
ok thanks :) i had to know this because i might ask to move this to advanched programming, since it's no javascript . Thanks !