Swing gui to translate test this is input in english

Assignment Help Basic Computer Science
Reference no: EM13166108

Design and code a SWING GUI to translate test this is input in English into Pig Latin.
You can assume that the sentence contains no punctuation. The rules for Pig Latin are
as follows:

a. For words that begin with consonants, move the leading consonant to the end of the
word and add "ay". Thus, "ball" becomes "all bay"; "button" becomes "uttonbay"; and
so forth.

b. For words that begin with vowels, add "way' to the end of the word. Thus, "all"
becomes "allway"; "one" becomes "oneway"; and so forth.

Use a FLOWLAYOUT with a JTEXTAREA for the source text and separate
JTEXTAREA for the translated text. Add a JBUTTON with an event to perform the
translation. A sample application is shown next with the text translated to Pig Latin.

To parse the source text, note that you can use the SCANNER class on a STRING. For
example, the following code

Scanner scan = new Scanner ("foo bar zot");
While (scan.hasNext())
{
System.out.println(scan.next());
}

Will output:

foo
bar
zot

Reference no: EM13166108

Questions Cloud

What is the partial pressure of each gas : A sample of gas is made entirely of carbon dioxide and water, and there are 259 moles of carbon dioxide and 513 moles of water. If the total pressure of the sample is 21 atm, what is the partial pressure of each gas?
Calculate the concentration of ammonium ions : A solution is prepared by dissolving 11.5 g ammonium sulfate in enough water to make 100.0 mL of stock solution. A 10.00 mL sample of this stock solution is added to 52.00 mL of water. Calculate the concentration of ammonium ions and sulfate ions ..
Make a power table for numbers mod 11 : Make a power table for numbers mod 11. Indicate how the table shows Fermat's theorem, label the primitive roots mod 11. Explain how you can tell they are primitive roots. Label the rows that make good power ciphers and explain
Calculate the volume of required to reach equivalence point : 60.0 mL of a 0.450 M solution is titrated with 0.570 M . Calculate the volume of required to reach the equivalence point.
Swing gui to translate test this is input in english : Design and code a SWING GUI to translate test this is input in English into Pig Latin.You can assume that the sentence contains no punctuation. The rules for Pig Latin are
State draw the fischer projection of the enantiomer : Draw the Fischer projection of the enantiomer of (4S, 5S)-5-sec-butyl-4-(1,1-difluoromethyl)nonane
What is the vapor pressure of the stored mixture : The solvent for an organic reaction is prepared by mixing 60.0 of acetone () with 56.0 of ethyl acetate (). This mixture is stored at 25.0 . The vapor pressure and the densities for the two pure components at 25.0. What is the vapor pressure of th..
Write a c++ program to draw the five olympic rings : Write a C++ program to draw the five Olympic rings. Make the circles have a thickness of 5 pixel
Write a script that declares a variable : Write a script that declares a variable and sets it to the count of all products in the Products table. If the count is greater than or equal to 7, the script should display a message that says,

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Find total average time to satisfy request of platter disk

Determine the average seek time? Determine the average rotational latency? Determine the transfer time for a sector? Determine the total average time to satisfy a request?

  Examine about direct cash-payment method

Examine about Direct Cash-Payment method

  Why chain of custody must be followed in investigation

You are a computer forensics investigator for a law firm. The firm acquired a new client, a young woman who was fired. What is chain of custody and why must it be followed in investigations?

  Identify a new use for ugc

Choose one of the two publications and identify a new use for UGC. Write a one-page memo to the publisher of that magazine describing your idea and how it would contribute to the goals of the publication.

  Which library procedures issue system calls

With respect to a programmer, a system call looks the same as a call to a library procedure. Is a programmer required to identify which library procedures issue system calls? Explain your answer.

  Expalining protocols essential in data communications

What is meant by protocol? Why are protocols essential in data communications?

  Research various types of hard drives available from online

Research the various types of hard drives available from online and/or local retail computer stores.Make a chart of several different brands or models of 1 TB desktop hard drives.

  Explaining competition in early years of telephone industry

Was regulation alternative to competition in early years of telephone industry?

  Itsec measurably show practical effectiveness of security

To what extent does ITSEC quantitatively and measurably illustrate practical effectiveness of the security measures it mandates?

  Weighted probabilities for x86 processors

Create a procedure that receives a value N between 0 to 100. When the procedure is called, there should be a probability of N/100 that it clears the Zero flag. Write a program that asks the user to enter a probability value 0 to 100.

  Interface perating system with uninterruptible power supply

Windows XP Professional can interface through the operating system with an Uninterruptible Power Supply (UPS).

  Study impact of global environmental policy

Consider how neighboring countries are affected, also emergent issues like new arctic shipping routes, or the international interest in Africa's natural resources. Study impact of global environmental policy associated with these issues.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd