morse-code

Preorder traversal through Morse code BST

佐手、 提交于 2019-12-18 09:47:35
问题 In c++ I am working on two trees, 1 is alphabetical a-z with nums and characters 0-9 , . ? The other tree is the equivalent of those characters in Morse code. I have to have the different trees in text files that should already be in the correct order for insert. In my normal alphabet, I worked out my balanced text file for preorder traversal looks like P H D B A C F E G L J I K N M O 2 X T R Q S V U W 0 Y Z 1 9 5 4 3 7 6 8 , . ? This text file prints out preorder traversal , . 0 1 2 3 4 5 6

Need Assistance with Java Morse Code Translator Quickly [closed]

走远了吗. 提交于 2019-12-13 10:09:15
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . For my Intro to Java class I'm supposed to create a Morse code translator that can convert both from English to Morse and from Morse to English. My code works for converting English to Morse, but can't seem to manage to go the other way, from Morse Code to English. Here is the prompt: This project involves

How to program a delay in Verilog?

喜欢而已 提交于 2019-12-12 06:57:07
问题 I'm trying to make a morse code display using an led. I need a half second pulse of the light to represent a dot and a 1.5 second pulse to represent a dash. I'm really stuck here. I have made a counter using an internal 50MHz clock on my FPGA. The machine I have to make will take as input a 3 bit number and translate that to a morse letter, A-H with A being 000, B being 001 and so on. I just need to figure out how to tell the FPGA to keep the led on for the specified time and then turn off

Creating a Morse Code translator for my programming class,having troubles with the output

非 Y 不嫁゛ 提交于 2019-12-11 14:28:26
问题 this is my first post on this platform ,im kinda new to this java programing and also not that good at english :p My teacher asked for a morse code translator that does morse to letters and vice versa Here's the code i came up with: import java.util.Scanner; public class Morse2 { public static void main(String[] args){ String[] letras = { "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"}; String[] MORSE = { ".-" ,

Why does my Morse code converter display no output?

匆匆过客 提交于 2019-12-11 03:14:29
问题 I want to make a morse code converter that converts letters from a txt file to morse code and morse code from a txt file to letters. The way of execution is ./morse.sh -e Text.txt for encoding and ./morse.sh -d Morse_text.txt for decoding. My only problem is that the output is not displayed on the screen for some reason. Here is the code. If I made a mistake let me know. #!/bin/bash echo "Hello,welcome to the Morse Code Converter!!" encode(){ declare -A morse morse[A]=".-"; morse[B]="-...";

Can I access the English dictionary to loop through matches in morse code? If not can I copy and paste it from some place onto just afew lines?

泄露秘密 提交于 2019-12-04 15:03:16
So I am writing a program in python 2.7 that loops through all of the words in the English to see if the Morse code version of English word matches the unknown Morse phrase. The reason I can't just interpret it is because there are no spaces between letters. This is a snippet of the code: def morse_solver(nol,morse,words): #nol is the number of letters to cut down search time,morse is the Morse phrase to decode, and words is a string (or can be a list) of all english words. lista=_index(words) #_index is a procedure that organizes the input in the following way:[nol,[]] selection=lista[nol-1]

Morse Code via iPhone LED

你。 提交于 2019-12-02 06:28:35
I have coded an App that can convert normal Text like : "Hello my Name is XY" into points and strokes ( ..-. ; --.- ; . ; - ; etc etc) Now I want to Convert these points and stroke into light flashes with the lenght of 0.3 sec for points an 0.6 seconds for strokes. also there is a pause with the length of a point after each point or stroke, a double pause after each Word, and a tripple pause/break after each sentences. The breaks are also implied into my code. The problem is now that the light strokes aren't different enough. Because the Idea behind it is to convert the Light flashes via an

morse code to english python3

我与影子孤独终老i 提交于 2019-11-30 07:25:59
i want to convert Morse Code to English using Python 3+ I have managed to convert english to morse code using this http://code.activestate.com/recipes/578407-simple-morse-code-translator-in-python/ But i want to convert Morse Code to English I have attempted to do it one charecter at a time, but the problem is that morse code letters are not 1 charecter long like english letters, so E is "." and S is "...", the problem i have is that the dictionary loop will find the "." and match it to E, so instead of getting S i get "E E E" i tried to fix this by detecting spaces and doing it a word at a

morse code to english python3

北城以北 提交于 2019-11-29 03:32:17
问题 i want to convert Morse Code to English using Python 3+ I have managed to convert english to morse code using this http://code.activestate.com/recipes/578407-simple-morse-code-translator-in-python/ But i want to convert Morse Code to English I have attempted to do it one charecter at a time, but the problem is that morse code letters are not 1 charecter long like english letters, so E is "." and S is "...", the problem i have is that the dictionary loop will find the "." and match it to E, so