Design and code a swing gui to translate test

Assignment Help JAVA Programming
Reference no: EM131921264

Problem

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: 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. 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: EM131921264

Questions Cloud

Analyze whether the free exercise clause : The purpose of this assignment is to emphasizes a different perspective from which to view the law: action taken by the government must come.
Compare and contrast rory sutherland concept : After reviewing this module's resources, compare and contrast Rory Sutherland's concept of "frame of reference"
What is the amount of tugboat accumulated earnings : Tugboats made a distribution of $25,000 cash to its stockholders on April 1, 2011. What is the amount of Tugboat's accumulated earnings
How does your current or past company you work for : Explore the video tab using the key term capital investment. As you learned in this unit, there are various sources of information.
Design and code a swing gui to translate test : Design and code a SWING GUI to translate test this is input in English into Pig Latin - A sample application is shown next with the text translated to Pig Latin
Provide a technique for strengthening managerial skills : Identify managerial skills that were personal weaknesses in that role. Provide a technique for strengthening managerial skills.
What are the annual net cash inflows : Doughboy Bakery would like to buy a new machine for putting icing and other toppings on pastries. What are the annual net cash inflows that will be provided
Could a state effectively enforce a law that banned : Could a state effectively enforce a law that banned all communication between minors and sex offenders through social media sites? Why or why not?
Record the purchase of the building : Give the journal entry to record the purchase of the building and the issue of the mortgage note payable on December 31, 2012

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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