dcsimg
Results 1 to 21 of 21

Thread: Contest 13 - Morse Code Translator

  1. #1

    Thread Starter
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    9,495

    Contest 13 - Morse Code Translator

    Programming Contest – Morse Code Translator

    For all those who haven't participated in the contest please read the FAQ

    Overview
    Given an input of Morse Code, translate it into plain English.

    For example, if I input .- then the program should output:
    Code:
    A


    Languages
    C, C#, C++, F#, Java, JavaScript(musts include HTML and CSS, but markup/styling will not be graded), LUA, Perl, Python, and VB.Net

    Deadline
    August 1st, 2018

    Rules for Contest
    The rules followed will be specific to the contest and not the game.
    • You must submit the source code and include a fiddle(ideone, dotnetfiddle, codepen, etc.)
    • Short symbols are represented by the . characters
    • Long symbols are represented by the - characters
    • Spaces between letters is represented by one literal whitespace character
    • Spaces between words is represented by one literal tab character (ASCII code 9)
    • Stops after sentences (i.e. punctuation) is represented by an optional ; character



    Marking

    Each entry will be judged on the following things.
    • Accuracy - Does the program follow all of the rules?
    • Length - How concise is the submitted code?
    • Execution - How quick did the code execute?
    • Efficiency - How efficient is the algorithm(s) you chose?



    Prizes
    You will get to brag that you won a VBForums contest and I'll also include a special avatar!

    Please submit all entry's to the forum below with the title in the following format "Contest 13: Morse Code Translator - [User Name]"
    Contest Entries Forum
    Last edited by dday9; Jul 17th, 2018 at 08:31 AM.

  2. #2
    Fanatic Member 2kaud's Avatar
    Join Date
    May 2014
    Location
    England
    Posts
    547

    Re: Contest 13 - Morse Code Translator

    Spaces between words/letters is represented by one literal whitespace character
    The gap between letters and between words is different in the morse standard (longer between words). How are you expecting this difference to be represented on input?
    All advice is offered in good faith only. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/

    C++17 Compiler: Microsoft VS2017 (15.9.4)

  3. #3

    Thread Starter
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    9,495

    Re: Contest 13 - Morse Code Translator

    Great question! Whitespace between letters should be a single whitespace character (ASCII code 32) whereas the whitespace between words should be a tab character (ASCII code 9). I will update my post to include the specification.

  4. #4
    Fanatic Member 2kaud's Avatar
    Join Date
    May 2014
    Location
    England
    Posts
    547

    Re: Contest 13 - Morse Code Translator

    Stops after sentences (i.e. punctuation) is represented by an optional ; character
    Most common punctuation is represented in morse. eg . is .-.-.-. So why is ; needed for punctuation?
    All advice is offered in good faith only. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/

    C++17 Compiler: Microsoft VS2017 (15.9.4)

  5. #5
    Addicted Member Peter Porter's Avatar
    Join Date
    Jul 2013
    Posts
    193

    Re: Contest 13 - Morse Code Translator

    I'll have it coded this weekend! Woo-hoo!

  6. #6
    Fanatic Member 2kaud's Avatar
    Join Date
    May 2014
    Location
    England
    Posts
    547

    Re: Contest 13 - Morse Code Translator

    Quote Originally Posted by Peter Porter View Post
    I'll have it coded this weekend! Woo-hoo!
    I've already got it coded - in both directions for easy testing! Just waiting for confirmation re ; .
    All advice is offered in good faith only. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/

    C++17 Compiler: Microsoft VS2017 (15.9.4)

  7. #7

    Thread Starter
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    9,495

    Re: Contest 13 - Morse Code Translator

    Quote Originally Posted by 2kaud View Post
    Most common punctuation is represented in morse. eg . is .-.-.-. So why is ; needed for punctuation?
    To throw a curve ball. I just want to add something that isn't necessary in morse code but commonly found in line stops in various programming languages so to give the contest a little something extra to account for.

  8. #8
    Addicted Member Peter Porter's Avatar
    Join Date
    Jul 2013
    Posts
    193

    Re: Contest 13 - Morse Code Translator

    Ok... Forget this weekend, I'm gonna need this coming week to work on it.

  9. #9
    Fanatic Member 2kaud's Avatar
    Join Date
    May 2014
    Location
    England
    Posts
    547

    Re: Contest 13 - Morse Code Translator

    How come everyone can see our submitted entries before the submission deadline?
    All advice is offered in good faith only. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/

    C++17 Compiler: Microsoft VS2017 (15.9.4)

  10. #10
    Addicted Member Peter Porter's Avatar
    Join Date
    Jul 2013
    Posts
    193

    Re: Contest 13 - Morse Code Translator

    Quote Originally Posted by 2kaud View Post
    How come everyone can see our submitted entries before the submission deadline?
    There should've been a reminder on the closing date for submissions without posting entries to encourage participation.

  11. #11
    Fanatic Member 2kaud's Avatar
    Join Date
    May 2014
    Location
    England
    Posts
    547

    Re: Contest 13 - Morse Code Translator

    Quote Originally Posted by Peter Porter View Post
    There should've been a reminder on the closing date for submissions without posting entries to encourage participation.
    The closing date isn't until 1st August - so the contest is still officially open!
    All advice is offered in good faith only. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/

    C++17 Compiler: Microsoft VS2017 (15.9.4)

  12. #12
    PowerPoster
    Join Date
    Sep 2006
    Location
    Egypt
    Posts
    2,533

    Re: Contest 13 - Morse Code Translator

    Quote Originally Posted by 2kaud View Post
    How come everyone can see our submitted entries before the submission deadline?
    The previous competitions were hidden, or at least they were concealed as soon as possible, that doesn't encourage to subscribe.
    More over how come posting a solution in Code Bank forum before the contest ends!!!



  13. #13

    Thread Starter
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    9,495

    Re: Contest 13 - Morse Code Translator

    The submissions should be hidden. I will talk to Steve to see what's going on.

  14. #14
    Fanatic Member 2kaud's Avatar
    Join Date
    May 2014
    Location
    England
    Posts
    547

    Re: Contest 13 - Morse Code Translator

    Quote Originally Posted by dday9 View Post
    The submissions should be hidden. I will talk to Steve to see what's going on.
    The phrase 'sackcloth and ashes' comes to mind........
    All advice is offered in good faith only. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/

    C++17 Compiler: Microsoft VS2017 (15.9.4)

  15. #15
    Fanatic Member 2kaud's Avatar
    Join Date
    May 2014
    Location
    England
    Posts
    547

    Re: Contest 13 - Morse Code Translator

    ... so what's happening?
    All advice is offered in good faith only. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/

    C++17 Compiler: Microsoft VS2017 (15.9.4)

  16. #16

    Thread Starter
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    9,495

    Re: Contest 13 - Morse Code Translator

    There were only two submissions, yours and Peter Porter's; and I only ever did hear back from you on what should be done. So I decided to simply end the contest.

  17. #17
    Fanatic Member 2kaud's Avatar
    Join Date
    May 2014
    Location
    England
    Posts
    547

    Re: Contest 13 - Morse Code Translator

    Fair enough - in which case can you make my entry public please.

    I know it's holiday time, but do we have any idea why people aren't interested in these any more? I thought the idea was good. Too easy (I had mine coded in 30 minutes - the hardest bit was finding and typing in the morse for each character!)? Too hard? No chance of winning? Prize not good enough?
    All advice is offered in good faith only. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/

    C++17 Compiler: Microsoft VS2017 (15.9.4)

  18. #18
    Addicted Member Peter Porter's Avatar
    Join Date
    Jul 2013
    Posts
    193

    Re: Contest 13 - Morse Code Translator

    Quote Originally Posted by 2kaud View Post
    I know it's holiday time, but do we have any idea why people aren't interested in these any more?
    Maybe because it's freakin' hot everywhere, or people are too distracted with politics at the moment.
    Last edited by Peter Porter; Aug 4th, 2018 at 11:49 AM.

  19. #19
    Frenzied Member
    Join Date
    Oct 2001
    Location
    Idaho Falls, Idaho USA
    Posts
    1,210

    Re: Contest 13 - Morse Code Translator

    I thought about a submission, but VBA is not one of the available languages accepted, and I just didn't have the free time with work and vacation interfering. Maybe later this winter.

  20. #20
    PowerPoster
    Join Date
    Feb 2006
    Posts
    19,361

    Re: Contest 13 - Morse Code Translator

    Yeah, VB isn't acceptable either. I wonder why this site is named VBForums?

  21. #21

    Thread Starter
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    9,495

    Re: Contest 13 - Morse Code Translator

    While VBForums has a lot of support for both VBA and VB6 through our various members, contests can only be judged by moderators and/or administrators. Unfortunately I seem to be the only one who is willing to put on and judge these contests and my knowledge is limited to the languages included in the overview (though I will admit I'm not entirely fluent in Perl or Java). In the past I reached out to our team of mods/admins to see if someone could help me in the off chance that we had a legacy VB submission, but the consensus was that while most had programmed in the legacy languages in the past, none had a way to actually compile the code now.

    So while I wish that I could open the contests to VBA and VB6 (and earlier), I just don't have a way to judge them at the time.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width