This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
I am suppose to write a program that will convert English to Morse code and Morse code to English. I am just terrible at this stuff and need a lot of help. Below is further instructions on my program. INSY 3300/INSY 5309: Intermediate Computer Programming Fall 2003 Due: Dec. 2 (Tuesday) Programming Assignment #5: String Manipulation (20 points) Complete Exercise 11.27 from the TextBook (p566-567). � Create TWO APPLICATION o MorscCode.java: To convert Characters into MorseCode o MorseToNormal: To convert MorseCode into Normal Characters � You have to use String arrays which contain characters or morse code. � You may use any kind of GUI such as JLabel, JTextField, JTextArea, or JButton. � For MorseCode.java, the program first determines whether the entered data are numbers or letters, using the following code: char alpha //contain the first character of the input field Character.isDigit ( alpha)// return true if alpha is a number Character.isLettcr ( alpha)//return true if alpha is a letter
Well, break it down into pieces. I see three major chunks: the encoder, the decoder, and the GUI. The encoder is easier. You just need an array holding the Morse code strings for each letter; encode a message by looking up each character one by one using its Unicode value (minus an appropriate offset) as an index. The decoder is a little trickier; although the assignment implies you can do it the same way, and you could, I suppose, it's still a bit more complicated. Instead you'd have to do a linear search through the array of codes to find the letter. Save the GUI until last, when the other stuff is tested and works.
Hello, Ok ok, calm down first. You can't work or think if you panic. Sorry to tell this, I have no idea about mose code, but I am really sure if you help me in mose code I will certainly help you to write the program. I have some doubts, I will list them done. 1) Is there a mose code for every letter in the english alphbet?. 2) What about the spaces and the signs such as . , / *. 3) If you say 'hi' in english, do we have to convert letter by letter?. I am sure if you answer these questions, I can certainly help you. Keep cool....
SCJP 1.4, SCMAD 1.0<br />SCWCD, SCBCD (in progress)