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.
- Host: GitHub
- URL: https://github.com/sudhanshu-ambastha/morse-code-translator
- Owner: Sudhanshu-Ambastha
- Created: 2024-08-03T08:10:25.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-08-03T13:57:54.000Z (10 months ago)
- Last Synced: 2025-02-03T22:42:43.085Z (4 months ago)
- Topics: clang, morse-code, morse-code-translator
- Language: C
- Homepage: https://www.programiz.com/online-compiler/4P7rYEpkylZWm
- Size: 788 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)