๐ Description: This is a simple C++ program that converts English text into Morse code. It supports alphabets, numbers, and spaces, ensuring accurate translation.
๐ Features โ Converts text to Morse code โ Supports A-Z, 0-9, and spaces โ Validates user input to allow only alphanumeric characters
๐ Installation
1๏ธโฃ Clone the repository: git clone https://github.com/Bala-K3/Morse-Code-Translator.git
2๏ธโฃ Navigate to the project directory: cd MorseCode-Translator
3๏ธโฃ Compile the C++ code using g++ (for Linux/macOS) g++ MorseCode.cpp -o MorseCode
4๏ธโฃ Run the executable: ./MorseCode
For Windows: g++ MorseCode.cpp -o MorseCode.exe
MorseCode.exe
๐ Tech Stack ๐น C++ โ Core programming language ๐น STL (unordered_map) โ Used for Morse code mapping
๐ฏ How to Use 1๏ธโฃ Run the program. 2๏ธโฃ Enter an English text input (A-Z, 0-9, or spaces). 3๏ธโฃ The program will output the Morse code equivalent.
๐ Example Input: HELLO 123 Output: .... . .-.. .-.. --- / .---- ..--- ...-- ๐ค Contributing Feel free to fork this repository and submit pull requests if you'd like to add new features!
๐ License This project is licensed under the MIT License.