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

  Advantages and disadvantages of asymmetric or symmetric key

The Institute has collaborated with XYZ inc. for research on genetics. Information should be kept top secret at any cost. At ABC Institute, researchers are not sure about kind of key.

  Conduct observation used in business or organization

Conduct the observation to someone involved in procedure which is used in the business or organization. This person could be someone at university.

  What is the standard deviation for the true error rate

Consider a learned hypothesis, h, for some boolean concept. What is the standard deviation and the 95% confidence interval for the true error rate for Errorv(h)?

  Continue to keep a journal

Continue to keep a journal of your activities and experience of using SAP. Include a copy of your full journal as an appendix to the reflective essay.

  Explaining origins or genesis of wireless networking

Explain origins/genesis of wireless networking.

  Following class definition

Given the following class definition, describe the type of variables used by the arguments and return values of the following member functions (values, pointers, or references):

  Both the userid and the person''s full name

a report and not just a listing:The report might be created with awk but it should have a heading. it should list both the userid and the person's full name (a person's fullname can be found in /etc/passwd file)

  Information system to use for stocks and trading futures

Write down some of the many considerations in selecting right information system to use for trading futures and stocks?

  Explain sequences of signals that occur on address bus

Explain the sequences of signals that occur on address bus, control bus, and data bus when a simple microcomputer fetches an instruction.

  Explaining competition in early years of telephone industry

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

  Values for the items in the risk register

Recommend reasonable values for items in risk register for this asset and threat, and give justifications for your choices.

  Generated by some condition that occurs as a result

Program: Generated by some condition that occurs as a result of an instruction execution, such as arithmetic overflow, division by zero, attempt to execute an illegal machine instruction, and reference outside a user's allowed memory space.

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