Pig Latin Translator In VB?
May 2, 2012
Im having serious problems with this code. I can get the first and last words to change into pig latin but the middle of my phrase stays the same. I also seem to have problems with it repeating itself.
Public Class Form1
Private Sub translatebutton_Click(sender As System.Object, e As System.EventArgs) Handles translatebutton.Click
Dim pig As String = ""
[code]....
View 4 Replies
ADVERTISEMENT
Apr 16, 2011
i can always get the first word to translate but the other words jumble together and sometimes repeat themselves. The rules for this program are as follows: To translate an English word into a pig Latin word, place the first letter of the English word (if it is not a vowel) at the end of the English word and add the letters ay. If the first letter of the English word is a vowel, place it at the end of the word and add Using this method, the word jump become umpjay, the word the becomes hetay and the word ace becomes ceay. Blanks between words remain blanks. So far this is what I've got:
[Code]....
View 3 Replies
Nov 12, 2009
i need to create somthing that lets someone enter a work and it will show it in pig latin form this is what i need.
1. If the word begins with a vowel then add -way to the end of the word like if they put "ant" it will show "ant-way"
2. if it doesnt start with a vowel then add a dash to the end and move the letters from the front to behind the dash untill it hits a vowel then put "ay" at the end so "Chair" is "air-Chay"
3. if it doesnt contain a vowel then ass "-way" to then end so "56" is "56-way"
this is what i just started...
Private Sub btnStart_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnStart.Click
Dim oldpass As String = txtEnglish.Text
Dim coded As String = txtEnglish.Text
Dim NumChars As Integer
[code]....
View 5 Replies
Apr 26, 2012
I am using Visual basic 2010 Express.For example:
1)Make it translate full sentences.
2)Make it so that you can have punctuation marks.
3)And with words such as Th and Qu make them
like The = hethay and quick = ickquay
Code:
Public Class Form1
Private Sub ConvertPigLatin(ByVal wordConvert As String, ByRef pigLatinWord As String)
If wordConvert.Substring(0, 1).ToUpper Like "[AEIOU]" Then
[code]....
View 8 Replies
Apr 28, 2009
I'm Trying to create a form that has 2 multiLine Textboxes one of which you enter text and the other that shows the text in piglatin.
View 2 Replies
Apr 10, 2012
What .Net functionality will allow a conversion from unicode to 7bit characters? For example, let's say that I want to convert "" to "eea". I thought I would find it in System.Text but it has been eluding me.
View 6 Replies
Aug 30, 2010
I have a few latin fonts that crashes the writeline method in Visual Basic.How do I force it to work? Replacing the font is not an option.
View 13 Replies
Nov 9, 2009
I am trying to figure out how to count the words that start with a vowel and also count the words that start with a consonant. I have tried several different ways on trying to do this but no luck. I have worked on this for a couple days already. Very frustrated I need some assistance with this issue
Here is the code I have so far:[code...]
View 8 Replies
Dec 11, 2011
How Can I make TextBox accept only Latin characters and numbers.?
View 9 Replies
Mar 28, 2011
Currently I have to parse each row in the file into a string array segments(). Then I look at the first few elements to see where I am at. E.G.
'Patient Loop
IF Segment(0) = 'NM1' and Segment(1) = 'QC' and current loop = '2000' Then
PatientFName = Segment(2)
[code].....
View 9 Replies
Jan 9, 2010
I have a couple people asking me to make a Na'Vi translator (for those who saw Avatar). If I was to take on such a project, how would you go about creating a language translator in VB? (i.e. *TargetLanguage* -> English and visa-versa)
View 13 Replies
May 17, 2012
i am convering VB code to c# :
Private Function SoundsLike(ByVal pWord As String,
Optional ByRef pAccuracy As Byte = 6) As String.
But i got diffrent type of parameters.Let me know how can i write in c#.
View 6 Replies
Oct 3, 2009
I have no problems with the Syntax Errors.So far the only problems I'm having are with the Runtime Errors and Logistic Errors.
View 4 Replies
May 13, 2012
the form allows the user to type in a word in English and get back its Spanish translation. To accomplish this, you must read a (dictionary) file into a Dictionary (hash table) data structure and search that structure used its properties and methods.
View 1 Replies
Jun 12, 2011
I am making an english to pig latin translator and I cannot quite get this right! For some reason i can always get the first word to translate but the other words jumble together and sometimes repeat themselves.The rules for this program are as follows: To translate an English word into a pig Latin word, place the first letter of the English word (if it is not a vowel) at the end of the English word and add the letters "ay." If the first letter of the English word is a vowel, place it at the end of the word and add "y." Using this method, the word "jump" become "umpjay," the word "the" becomes "hetay" and the word "ace" becomes "ceay". Blanks between words remain blanks.
So far this is what I've got: Public Class Form1 Private Sub btnTran_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnTran.Click Dim Sentence As String, letter As String, wordI As String, word1 As String, word As Double, wordamount As Double, counter As Integer = 0, current As Double txtOutput.Text = ""
[Code]...
View 2 Replies
Jul 2, 2009
Trying to create a Rudimentary Translator for class. I have to have english words that equal to the german or french equivalents. The words must be stored in a text file and read into a structure with a member for each language. The program would request an English sentence as input and translate it into German or French. Assume all punctuation would be a peroid a the end of the sentence.
Example: english-yes german-ja french-qui
View 10 Replies
Apr 18, 2012
I want to develop a translator (e.g. German to English ) with a separate database. What is the best way to do this? The database must be able to record words and phrases with their meaning. The database capacity must be at least 2,000,000 and phrases. Also, what is the best data structure for fastest retrieval of the information.
View 4 Replies
Mar 24, 2009
Rudimentary Translator gives English words and their French and German equivalents. Store these words in a text file and read them into a structure having a member for each language. Write a program that sorts arrays according to the English words. The program should then request an English sentence as input from the keyboard and translate it into French and German. For example, if the English sentence given is MY PENCIL IS ON THE TABLE, the French translation will be MON CRAYON EST SUR LA TABLE, and the German translation will be MEIN BLEISTIFT IST AUF DEM TISCH.
Note: Assume that the only punctuation in the sentence is a period at the end of the sentence. Use a binary search to locate each English word.English words and their French and German equivalents.
English French German
YES OUI JA
TABLE TABLE TISCH
THE LA DEM
[code]....
View 1 Replies
Mar 19, 2012
i've tried to make a leet translator but it fails.
View 7 Replies
Oct 5, 2009
I want to make my translator interactive with the user. In microsoft Word the User can change the dictionary terms of the word or insert a word to make the (little red line) beneath a misspelt word go away. In my translator program. I have a databank of words that are inside a strArray. The strArray is read as EnglishWord[SpanishDefinition] and SpanishWord[EnglishDefinition] inside the DataBank. I want the user to be able to insert a word with it's definition if the databank does not have the word or the definition...
View 13 Replies
Nov 3, 2009
i'm currently making a program that converts every letter into some other letter creating a secret message that only this program can convert back into english. Could some help me with the convert code? I understand i would need 2 textbox's and 1 button at the least.The button would place textbox1.text into textbox2.text then it will convert lets say (if textbox2.contains "a" then) i dont know after that. i would want it to change the "a" to "g" instead. without doing any other change. [code] Now this is just converting the letter "a" to letter "g". I would want the whole alphabet.
View 11 Replies
Nov 15, 2010
I'm trying to make a 'translator' that will simply just swap each letter with each other, (a = b, b = a, c = d, d = c ect.), when the user types something into a textbox. How would I go about making it?
View 6 Replies
Sep 7, 2009
I want to make a translator like this: [URL]...I have already made two textboxes and a button. If I type in textbox 1 abc then textbox 2 must say nop. I already know the If textbox1.text = "abc" then textbox2.text = nop. I don't want that i want to translate the a to a n and the b to a o and the c to p. So i want to translate every single letter and make it 1 word. Its like a secret code. My language looks like that a=nb=oc=pd=qe=rf=sg=th=ui=vj=wk=xl=ym=z n=ao=bp=cq=dr=es=ft=gu=hv=iw=jx=ky=l z=m
View 22 Replies
Nov 16, 2011
The title may seem odd in what i'm trying to ask.I'm trying to come up with a way to translate code, example: S lyyq pyzx which translatesUser is asked to enter the code OR the message to translate, which if it's in the code, it's outputs the message or if the user enters a message it translates to the code.
View 7 Replies