Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
.Net Coding Challenge #1
#31
(04-16-2011, 11:05 PM)KoBE Wrote: Yea, with out the dash it's almost impossible to know whether you took two characters from the front or just one. Also even with the dash... if you have a word like "work" it would be ork-way... but converting back it would be ork. Because ork translated to pig latin would be ork-way as well. This challenge definitely has some holes in it. But it still helps stimulate your programming/logic skills.

I finally got it working with a function that deals with no vowels like i've seen in online translators. for example, a no vowel text like "vkcd" would be "kcd-vay"

Where the v got moved after the hyphen and before the "ay" because it was just the first letter. If no vowels are found, my application will just take the first letter as shown, and do the same thing with it. I added onto your method for doing this as:

Definining noVowels:
Code:
Dim noVowels As String

Making the function for that string:
Code:
noVowels = strWord.Substring(1, 1)
strSplit = strWord.Substring(0, 1).ToLower
strResult = strWord.Substring(1, strWord.Length - 1) & "-" & strSplit & "ay"
Return strResult

Where I had assigned "i" the value of 1

The method for coding my translator was pretty much very similar to yours, where I had defined a string array for each letter (Vowels) as a,e,i,o,u, and added y. Then made the rules for appending and removing certain letters in a loop that scans all words in the input
Reply


Messages In This Thread
.Net Coding Challenge #1 - by KoBE - 04-15-2011, 09:51 AM
RE: .Net Coding Challenge #1 - by Resistance - 04-15-2011, 05:30 PM
RE: .Net Coding Challenge #1 - by Fragma - 04-15-2011, 05:48 PM
RE: .Net Coding Challenge #1 - by AceInfinity - 04-15-2011, 06:27 PM
RE: .Net Coding Challenge #1 - by Resistance - 04-15-2011, 07:48 PM
RE: .Net Coding Challenge #1 - by AceInfinity - 04-15-2011, 07:59 PM
RE: .Net Coding Challenge #1 - by Resistance - 04-15-2011, 10:11 PM
RE: .Net Coding Challenge #1 - by Fragma - 04-16-2011, 02:40 AM
RE: .Net Coding Challenge #1 - by Untouch - 04-16-2011, 03:03 AM
RE: .Net Coding Challenge #1 - by AceInfinity - 04-16-2011, 03:28 AM
RE: .Net Coding Challenge #1 - by KoBE - 04-16-2011, 11:17 AM
RE: .Net Coding Challenge #1 - by Fragma - 04-16-2011, 03:44 AM
RE: .Net Coding Challenge #1 - by Resistance - 04-16-2011, 07:53 AM
RE: .Net Coding Challenge #1 - by Untouch - 04-16-2011, 11:25 AM
RE: .Net Coding Challenge #1 - by Resistance - 04-16-2011, 11:29 AM
RE: .Net Coding Challenge #1 - by Modestep - 04-16-2011, 08:14 AM
RE: .Net Coding Challenge #1 - by KoBE - 04-16-2011, 12:35 PM
RE: .Net Coding Challenge #1 - by Resistance - 04-16-2011, 01:56 PM
RE: .Net Coding Challenge #1 - by KoBE - 04-16-2011, 02:12 PM
RE: .Net Coding Challenge #1 - by AceInfinity - 04-16-2011, 02:26 PM
RE: .Net Coding Challenge #1 - by KoBE - 04-16-2011, 02:31 PM
RE: .Net Coding Challenge #1 - by Resistance - 04-16-2011, 03:03 PM
RE: .Net Coding Challenge #1 - by KoBE - 04-16-2011, 03:26 PM
RE: .Net Coding Challenge #1 - by Resistance - 04-16-2011, 04:42 PM
RE: .Net Coding Challenge #1 - by AceInfinity - 04-16-2011, 05:18 PM
RE: .Net Coding Challenge #1 - by KoBE - 04-16-2011, 05:38 PM
RE: .Net Coding Challenge #1 - by AceInfinity - 04-16-2011, 10:25 PM
RE: .Net Coding Challenge #1 - by KoBE - 04-16-2011, 10:32 PM
RE: .Net Coding Challenge #1 - by AceInfinity - 04-16-2011, 10:45 PM
RE: .Net Coding Challenge #1 - by KoBE - 04-16-2011, 11:05 PM
RE: .Net Coding Challenge #1 - by AceInfinity - 04-16-2011, 11:40 PM
RE: .Net Coding Challenge #1 - by KoBE - 04-16-2011, 11:49 PM
RE: .Net Coding Challenge #1 - by AceInfinity - 04-17-2011, 12:01 AM
RE: .Net Coding Challenge #1 - by Untouch - 04-17-2011, 03:07 AM
RE: .Net Coding Challenge #1 - by AceInfinity - 04-17-2011, 01:16 AM
RE: .Net Coding Challenge #1 - by AceInfinity - 04-17-2011, 03:53 AM
RE: .Net Coding Challenge #1 - by KoBE - 04-17-2011, 08:10 AM
RE: .Net Coding Challenge #1 - by Untouch - 04-17-2011, 08:24 AM
RE: .Net Coding Challenge #1 - by AceInfinity - 04-17-2011, 10:25 AM
RE: .Net Coding Challenge #1 - by KoBE - 04-17-2011, 04:34 PM
RE: .Net Coding Challenge #1 - by AceInfinity - 04-17-2011, 04:36 PM
RE: .Net Coding Challenge #1 - by KoBE - 04-17-2011, 04:56 PM
RE: .Net Coding Challenge #1 - by AceInfinity - 04-17-2011, 10:54 PM
RE: .Net Coding Challenge #1 - by KoBE - 04-18-2011, 07:25 AM
RE: .Net Coding Challenge #1 - by AceInfinity - 04-18-2011, 08:19 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Code Challenge - Created by Ace AceInfinity 5 1,706 04-24-2012, 10:27 AM
Last Post: AceInfinity
  Help with coding jerrojack 1 877 12-29-2011, 03:27 AM
Last Post: AceInfinity
  Coding-Central.net - Coding, cracking and webmastering. w00pz 5 2,430 09-02-2011, 01:43 PM
Last Post: AceInfinity
  Help Coding A Downloader? Fragma 9 3,422 08-25-2011, 06:10 PM
Last Post: LiveModz
  .Net Coding Challenge #5 iCrack 18 5,906 05-21-2011, 12:49 AM
Last Post: thanasis2028

Forum Jump:


Users browsing this thread: 4 Guest(s)