Design and code a swing gui to translate test

Assignment Help JAVA Programming
Reference no: EM13939958

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: EM13939958

Questions Cloud

Three key sociological perspectives : Consider a 'social problem' (i.e., suicide, addicition, obesity, eating disorders, family violence, crime, poverty, gender inequality or racism). Choose ONE of the three key sociological perspectives discussed in weeks 2-4 to explain the phenomeno..
Use the following data to find the direct labor cost : Use the following data to find the direct labor cost variance.
Discuss legal and statutory requirements : Discuss legal and statutory requirements that apply to rooms division operations
Displays your name in the titlebar of the browser : Lab Assignment 1: Beginning HTML Due Week 2 and worth 40 points Deliverable: One (1) Web page (.htm) Follow the directions below to complete Lab Assignment 1: Using Notepad, or a similar text editor, create an .htm file that: displays your name an..
Design and code a swing gui to translate test : 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
By how much time did the playstation beat the atlantic : Finally, divide 3000 statute miles by the statute miles per hour you obtained for the Atlantic and Playstation, to find the number of hours it took each yacht. Then answer this question: By how much time did the Playstation beat the Atlantic in trave..
Devise a comprehensive architecture of the system : Design of each the three capabilities in more detail by highlighting the components needed to address the business concerns discussed - Devise a comprehensive architecture of the system that includes the three capabilities and how they relate and i..
Investigate and compare their architectures : Survey modern embedded OS including iOS, Android, wearable OS and others. Investigate and compare their architectures, implementations, strengths, weakness, and security properties.
Explain java stack and heap : I am posting the questions as reference, but I am requesting information about how to do these types of questions generally, not to have them done for me.

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