Skip to content

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.

Notifications You must be signed in to change notification settings

Sudhanshu-Ambastha/Morse-Code-Translator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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

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:

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages