Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

morse code in pascal

wingwingkcwwingwingkcw Posts: 37Member
write a program that encodes a message into morse code and decode a message from morse code into english.the message should be located in the input file ,read the message in and from it determine which type of operation needs to be performed.write the result to the output file. enter the morse code using another input file.assume the message will be less then 1000 charactors,that a space occurs between patterns,and that the message contains only letters.

Comments

  • PerranPerran Posts: 241Member
    : write a program that encodes a message into morse code and decode a message from morse code into english.the message should be located in the input file ,read the message in and from it determine which type of operation needs to be performed.write the result to the output file. enter the morse code using another input file.assume the message will be less then 1000 charactors,that a space occurs between patterns,and that the message contains only letters.
    :
    Why don't YOU try to write this and then get help from us? This is actually an interesting exercise in programming. You don't want to miss out on the learning opportunity...............
  • ManningManning Posts: 1,621Member
    : : write a program that encodes a message into morse code and decode a message from morse code into english.the message should be located in the input file ,read the message in and from it determine which type of operation needs to be performed.write the result to the output file. enter the morse code using another input file.assume the message will be less then 1000 charactors,that a space occurs between patterns,and that the message contains only letters.
    : :
    : Why don't YOU try to write this and then get help from us? This is actually an interesting exercise in programming. You don't want to miss out on the learning opportunity...............


    Well said. And you saved me from having to say it...Ive gotten kind of bored of saying it over and over. I feel like a broken record sometimes :)
  • sweeneysweeney Posts: 117Member
    : write a program that encodes a message into morse code and decode a message from morse code into english.the message should be located in the input file ,read the message in and from it determine which type of operation needs to be performed.write the result to the output file. enter the morse code using another input file.assume the message will be less then 1000 charactors,that a space occurs between patterns,and that the message contains only letters.
    :
    Morse code must be typed in using '.' for a dot and '-' for a dash. Letters have to be separated by spaces and words have to be separated by '/'.

    e.g. for "SOS SOS" type "... --- ... / ... --- ...".

    you will probly have to store all the codes onto a file and use a serch function to call them! then output it on the screen and say if its correct! I dont have any code coz never done it! hope you enjoy and hope this is helpful!
Sign In or Register to comment.