Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need a little help with my assignment please. here is the code i have so far please help me complete it. if you know

I need a little help with my assignment please. here is the code i have so far please help me complete it. if you know you cant do it please dont waste my queastion. if you get it right please include a screen shot of your output. Thank you

Visual Basic

image text in transcribed

Here is the code i have so far

Public Class frmTranslate

Private Sub btnTranslate_Click(sender As Object, e As EventArgs) Handles btnTranslate.Click

Dim data() As String

Dim search() As String

Dim input As String = txtEnglish.Text

Dim sentence() As String = IO.File.ReadAllLines("Textese.txt")

Dim English(sentence.Length - 1) As String

Dim Textese(sentence.Length - 1) As String

For field As Integer = 0 To sentence.Length - 1

data = sentence(field).Split(","c)

English(field) = data(0)

Textese(field) = data(1)

Next

Dim texteseText As String = ""

search = txtEnglish.Text.Split(" "c)

For i As Integer = 0 To search.Length - 1

For j As Integer = 0 To English.Length - 1

If English(j) = search(i).ToUpper() Then

texteseText += Textese(j) + " "

End If

Next

Next

txtTextese.Text = texteseText

End Sub

End Class

Here is the Textese.txt

Note that Both files must be in the same folder otherwise you will get an error when you try to run the prototype.

English Textese

adieu, +u anyone, ne1 are, r ate, 8 band, b& be, b before, b4 busy, bz computer, puter create, cr8 cutie, qt definitely, def deviate, dv8 easy,ez energy, nrg enjoy, njoy enough, nuff everyone, every1 excellent, xlnt favorite, fav for, 4 forever, 4ever forget, 4get great, gr8 hate, h8 in, n late, l8 later, l8r mate, m8 naturally, natch oh, o okay, k one, 1 please, plz see,c seriously, srsly skate, sk8 skater, sk8r someone, sum1 text, txt thanks, thx to, 2 today, 2day tomorrow, 2mro tonight, 2nite too, 2 wait, w8 why, y won, 1 wonderful, 1drfl you, u your, ur 
Textese Translator Table 7.19 gives English words and their translations into Textese. These words have been placed into the file Textese.txt. The first two lines of the file are adieu,+u anyone,ne1 Write a program that requests an English sentence as input and translates it into Textese. Assume that there is no punctuation in the English sentence. (Note: If a word in the sentence is not in the text file, it should appear as itself in the Textese translation.) See Fig. 7.86 TABLE 7.19 English exe English xtese English Textese English Texese Some English words and their Textese translations. 18 18r anyone energy thx enough f nlly ch day everyone everyoh excellent xlnt okay 8 tomorrow 2mro 2nite bz plz computer putertorever cr8 forget seriously rsly sk8 wonderful Idrf sk8r sum your definitely def h8 skater Textese Translator English Sentence: enjoy the great band Emma Translate Sentence Texdese Sentenca: njoy the gr8b& Emma FIGURE 7.86 Possible outcome of g Project 5. Textese Translator Table 7.19 gives English words and their translations into Textese. These words have been placed into the file Textese.txt. The first two lines of the file are adieu,+u anyone,ne1 Write a program that requests an English sentence as input and translates it into Textese. Assume that there is no punctuation in the English sentence. (Note: If a word in the sentence is not in the text file, it should appear as itself in the Textese translation.) See Fig. 7.86 TABLE 7.19 English exe English xtese English Textese English Texese Some English words and their Textese translations. 18 18r anyone energy thx enough f nlly ch day everyone everyoh excellent xlnt okay 8 tomorrow 2mro 2nite bz plz computer putertorever cr8 forget seriously rsly sk8 wonderful Idrf sk8r sum your definitely def h8 skater Textese Translator English Sentence: enjoy the great band Emma Translate Sentence Texdese Sentenca: njoy the gr8b& Emma FIGURE 7.86 Possible outcome of g Project 5

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Relational Database Design With Microcomputer Applications

Authors: Glenn A. Jackson

1st Edition

0137718411, 978-0137718412

More Books

Students also viewed these Databases questions

Question

8. Describe the steps in the development planning process.

Answered: 1 week ago