VB English To Piglatin Translator?

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


ADVERTISEMENT

English To Spanish Translator?

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

English To French/German Translator?

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

VS 2008 Code - Making An English To Pig Latin Translator

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

English IDE Setup Project Installs English .NET Framework Even Though Localization = German?

Apr 30, 2009

I'm facing a major problem with a Deployment Project I created to install one of my applications.I am using the ENGLISH IDE of the Visual Studio 2008 - even though my end users will have German environments. This is why I set the

Localization = German

Property in the Deployment Project's Properties. The UI of the generated setup is German, so all's fine there. However, the setup installs the ENGLISH .Net Framework. I have not found any way around this.The problem are at least twofold:

1. An English Framework on a German PC might cause instabilities.

2. It's a big flaw to see UI inconsistencies (i.e. the UI and Setup of the application is German while the NET Framework shows certain elements in English, e.g. the DisplayName property of cultures)how can I get the project to install the localized .NET Framework?

View 4 Replies

Force Asc To Use English Codepage On Non-english Systems?

Jun 15, 2012

I want to simulate a way to "force" the ASC function to use the english codepage, even on a system having the "language for non-unicode" different than English.[code]On a system having "language for non-unicode" set as English, currently the result is 140..On a system having "language for non-unicode" set as Slovakian, currently the result is 79..The twist is I CANNOT user AscW (for reasons I cannot disclose)In the particular example above I would need for the code to always return 140.If there's a way to force the whole program to use the english code page I could work with that as well.[code]

View 2 Replies

Choose Us English Or Uk English

Mar 26, 2010

my teacher gave me this text document call english.dic.... it has 196000 words or maybe more. can anyone know how to do if i want to run the program, i can choose if i want uk english or us english. at the moment i have this button1 and listbox1.and when i press button 1 it would list all the words.

[code....]

this is my code for button1 and listbox1. can i use a radiobutton and select uk english or us english and only those words will be shown at listbox1? or there's no way i can do it cos it depends on the file already?

View 2 Replies

How To Rewrite EDI Translator

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

Make A Na'Vi Translator?

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

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

VB To C# Code Translator

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

Develop A Translator Using Program?

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

Create A Rudimentary Translator For Class?

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

Developing A Translator With A Separate Database?

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

Make A Leetspeak Translator In Vb 2010?

Mar 19, 2012

i've tried to make a leet translator but it fails.

View 7 Replies

Make Translator Interactive With The User

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

VS 2008 Secret Message Translator

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

Make A 'translator' That Will Simply Just Swap Each Letter?

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

C# - Date Difference In English

Jun 11, 2009

How do I calculate relative time?How do I calculate someone's age in C#? Anyone know how of a function in VB.NET or C# that will take two dates, calculate the difference and output that difference in an english string? For example if I pass the dates '3/10/2009' and '3/25/2009', the function would return the string "15 Days" or if I pass the dates '3/10/2005' and '3/15/2007', the function would return "2 Years, 5 days"

View 3 Replies

English Textbox To Pig Lain?

Jun 6, 2011

I have been playing around with trying to create an english to pig latin translator. I am not really sure where to start, so right now I am just focusing on splitting a string and search for "A", if the word has "A" add "way" to the end of it. Here is what I figured out from some reasearch (I found most of this from a post on here): Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

[Code]...

It works, But I am not sure how to get it so it search the entire string without having to do 1,2,3,ect.

What would be the best way to search the string for certain letters? I was thinking some type of case or loop but I tried a few different things, but could not get it process correctly. Google, gives me alot of different examples, but I can not get most of them working with my code. I only have a semester of VB.net Programming, so I am trying to find the best way to do this, without making it too complicated.

View 18 Replies

English To Metric Conversion

Nov 25, 2008

[Code]...

Declare constants for all numeric values in the two formula above. The variable used to represent the number of meters and the numeric constant 39.37 must be declared as the data type double. the constants and data types in the first formula should be declared as integers. Convert the Total Inches in the second formula to a Double data type before using it in the calculation. Set Option Strict to on in your code. (Hint: After the number of meters has been determined, the maximum number of kilometers can be computed from Kilometers = Meters/1,000. Next, the remaining meters can be determined from: Remaining Meters = Meters - 1,000 * Kilometers. The number fo integer meters in Remaining Meters then can be determined from: Integer Meters = Convert.ToInt32(Remaining Meters). Continue with the same technique to compute the number of centimeters.)

[Code]...

View 4 Replies

Non-English Characters In Forms?

Aug 22, 2011

I have a form to display in textboxes text which has been read in from a txt file. The data can contain accented characters from European languages (French, Spanish etc.) but when these occur the display is corrupted. How do I configure VB.NET to handle these characters (I am assuming there is some setting to do this rather than having to write code to process all input)?

View 3 Replies

Speech To Text (none-English)?

Oct 26, 2010

I have been pulling my hair on how to write a simple (may be not) program to recognize my native language (again, not English).I want to be able to just speak to the computer as we could in English and have the program type the words for me.We use the English alphabet to write our words so that's one step ahead already, but I don't understand how I can tie the sound to the words.

View 3 Replies

Translate English To Pig Latin?

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

Use A Sub Procedure To Get English Words

Mar 11, 2010

I have a program in which a user enters a sentence in English into a text box, then the sentence is translated into French and German based on words in an array of structures that gets its values from a text file. I have almost all of the program written, but I am a bit confused on how to get VB to get the English words that are entered into the text box separately so they can be translated individually and the value returned. I need help with this last part. I need to use a Sub Procedure to get the English Words and to Translate them.[code]

View 5 Replies

Make A Translator - Translateevery Single Letter And Make It 1 Word

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

Reading DBase DBF With Non-English Characters

Mar 15, 2011

I have a tool which reads dBase files and uploads the contents to SQL Server, part of a system to import shapefiles. It works but now we have a requirement to import files that include non-English characters (Norwegian in this case, could be other languages later) and they're being corrupted. The dBase files are being read using an OleDbDataAdapter. Stepping through the code I can see that the text is wrong as it is read in. I'm assuming it's something to do with code pages or Unicode but I have no idea how to fix it.A dBase Reader application tells me the DBFs are in code page 1252 - I don't know if this is correct. My upload tool runs on Win7 with English (UK) regional settings.[code]Is there a way to tell OleDbDataAdapter what code page to use or a better way to read dBase files from VB.Net?

View 2 Replies

.net - Allow Typing Of Non English Characters In Text Box?

Jun 25, 2012

In VB.NET, I want to allow typing of non English Characters (For example, Russian, Turkish) in text box. How can I achieve this? Please let me know.

View 1 Replies

Application With XML Files Run Well On Japanese OS But Cannot On English OS?

Sep 14, 2009

ifference between Japanese operating system and English operating system when launch an application that be created base on .NET 3.5 framework. Develop computer:

Operating system : Windows Vista, Japanese edition
Developing environment :Visual Basic 2008

Run computer:

Operating system : Windows XP SP3, English edition

Both 2 computers are up to .NET 3.5 framework.The application ran well on Japanese edition OS computers but when I tried to launch on English edition OS computer, there was an error described : See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Configuration.ConfigurationErrorsException: An error occurred creating the configuration section handler for system.xml.serialization/xmlSerializer: Exception has been thrown by the target of an invocation. --->

[code]....

I guess this error is result of not able to reading from XML file that includes Japanese words. These words are defined as string.

View 2 Replies

Convert English System Into Metric?

Aug 16, 2011

Im trying to convert the English system into the metric system in visual basic, here is what i have so far

Sub Metric()
Dim num As Single
num1 = InputBox(" enter feet...")
num2 = InputBox(" enter inches...")

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved