An open API service indexing awesome lists of open source software.

https://github.com/sudhanshu-ambastha/morse-code-translator

This C program translates text to Morse code and vice versa. It allows the user to choose between converting plain text to Morse code or converting Morse code back to plain text.
https://github.com/sudhanshu-ambastha/morse-code-translator

clang morse-code morse-code-translator

Last synced: about 2 months ago
JSON representation

This C program translates text to Morse code and vice versa. It allows the user to choose between converting plain text to Morse code or converting Morse code back to plain text.

Awesome Lists containing this project

README

        

# Morse Code Translator
This is a simple C program that translates English text into Morse code and vice versa.

## Preview

## Compilation and Execution
1. To check whether MinGW is recognized by your system, use the following command:
```
gcc -v
```
2. use the play button in the top right corner to run and debug the code.

3. To compile the game, use the following command:
```
gcc -o Main Main.c
```

To run the compiled program:
```
./Main
```

If you encounter any issues setting up MinGW on Windows, refer to this guide:
[How to run a C program in Visual Studio Code](https://www.javatpoint.com/how-to-run-a-c-program-in-visual-studio-code)

## Example Input and Output
1. Text to Morse Code with Numbers:
Input:
```
HELLO WORLD 2024
```
Output:
```
.... . .-.. .-.. --- / .-- --- .-. .-.. -.. / ..--- ----- ..--- ....-
```

2. Morse Code to Text with Numbers:
Input:
```
.... . .-.. .-.. --- / .-- --- .-. .-.. -.. / ..--- ----- ..--- ....-
```
Output:
```
HELLOWORLD2024
```

__***Note***__: The program uses the standard Morse code chart to translate between English text and Morse code.

## Dependencies
Standard C library:
- [MinGW](https://sourceforge.net/projects/mingw/)
- [C/C++](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools)