-
Jul 16th, 2018, 11:28 AM
#1
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:
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.
-
Jul 17th, 2018, 07:05 AM
#2
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++23 Compiler: Microsoft VS2022 (17.6.5)
-
Jul 17th, 2018, 08:29 AM
#3
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.
-
Jul 17th, 2018, 09:32 AM
#4
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++23 Compiler: Microsoft VS2022 (17.6.5)
-
Jul 17th, 2018, 09:46 AM
#5
Re: Contest 13 - Morse Code Translator
I'll have it coded this weekend! Woo-hoo!
-
Jul 17th, 2018, 10:04 AM
#6
Re: Contest 13 - Morse Code Translator
Originally Posted by Peter Porter
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++23 Compiler: Microsoft VS2022 (17.6.5)
-
Jul 17th, 2018, 10:28 AM
#7
Re: Contest 13 - Morse Code Translator
Originally Posted by 2kaud
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.
-
Jul 21st, 2018, 06:42 PM
#8
Re: Contest 13 - Morse Code Translator
Ok... Forget this weekend, I'm gonna need this coming week to work on it.
-
Jul 28th, 2018, 11:30 AM
#9
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++23 Compiler: Microsoft VS2022 (17.6.5)
-
Jul 28th, 2018, 01:10 PM
#10
Re: Contest 13 - Morse Code Translator
Originally Posted by 2kaud
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.
-
Jul 28th, 2018, 02:11 PM
#11
Re: Contest 13 - Morse Code Translator
Originally Posted by Peter Porter
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++23 Compiler: Microsoft VS2022 (17.6.5)
-
Jul 28th, 2018, 02:43 PM
#12
Re: Contest 13 - Morse Code Translator
Originally Posted by 2kaud
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!!!
-
Jul 30th, 2018, 08:20 AM
#13
Re: Contest 13 - Morse Code Translator
The submissions should be hidden. I will talk to Steve to see what's going on.
-
Jul 30th, 2018, 09:54 AM
#14
Re: Contest 13 - Morse Code Translator
Originally Posted by dday9
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++23 Compiler: Microsoft VS2022 (17.6.5)
-
Aug 3rd, 2018, 01:50 AM
#15
Re: Contest 13 - Morse Code Translator
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++23 Compiler: Microsoft VS2022 (17.6.5)
-
Aug 3rd, 2018, 08:28 AM
#16
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.
-
Aug 3rd, 2018, 01:12 PM
#17
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++23 Compiler: Microsoft VS2022 (17.6.5)
-
Aug 4th, 2018, 11:27 AM
#18
Re: Contest 13 - Morse Code Translator
Originally Posted by 2kaud
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.
-
Aug 13th, 2018, 03:32 PM
#19
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.
-
Aug 13th, 2018, 05:56 PM
#20
Re: Contest 13 - Morse Code Translator
Yeah, VB isn't acceptable either. I wonder why this site is named VBForums?
-
Aug 15th, 2018, 02:00 PM
#21
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|