dshot80
April 23rd, 1999, 12:08 PM
Seperation between words is indicated by spaces, or rather, the absence of a dot or a dash. In a sound oriented system, a space is indicated by a short period of time during which no sound is transmitted.
Write a program that will
· read an English language phrase and encode the phrase into Morse code
· read a phrase in Morse code and convert the phrase into the English equivalent
Use one blank between each Morse coded letter and three blanks between each Morse coded word.
Morse Code International version
Letters:
A .- B -… C -.-. D -.. E . F..-. G --. H …. I ..
J .--- K -.- L .-.. M -- N -. O --- P .--. Q --.- R .-.
S … T - U ..- V …- W .-- X -..- Y -.-- Z --..
Digits:
1 .---- 2 ..--- 3 …-- 4 ….- 5 ….. 6 -…. 7 --… 8 ---.. 9 ----.
0 -----
I am not sure how exactly to do this program so if anyone could help me please feel free. Send me an E-mail with your thoughts or help.
Write a program that will
· read an English language phrase and encode the phrase into Morse code
· read a phrase in Morse code and convert the phrase into the English equivalent
Use one blank between each Morse coded letter and three blanks between each Morse coded word.
Morse Code International version
Letters:
A .- B -… C -.-. D -.. E . F..-. G --. H …. I ..
J .--- K -.- L .-.. M -- N -. O --- P .--. Q --.- R .-.
S … T - U ..- V …- W .-- X -..- Y -.-- Z --..
Digits:
1 .---- 2 ..--- 3 …-- 4 ….- 5 ….. 6 -…. 7 --… 8 ---.. 9 ----.
0 -----
I am not sure how exactly to do this program so if anyone could help me please feel free. Send me an E-mail with your thoughts or help.