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

  Program to read the names of users

Write a program to read the names of users and number of units consumed and print out the charges with names. Use the concepts of classes.

  Application for an animal-fur trimming service

Create an application for an animal-fur trimming service. Write the code for the application. Prompt the user to indicate how many animals. Display the total fee for one year. Be pleasant in your output as it will be expensive.

  Small computer system interface-standard computer disk

How many primary drive partitions are supported on computers that still conform to the standard established by MS-DOS? How many total partitions can a standard computer disk [Intergrated Drive Electronics (IDE)/Serial Advanced Technology Attachment (..

  What are the steps necessary to create a jar file

What are the steps necessary to create a JAR file where the main entry point is identified?

  Write an interface for an abstract method

Write an interface, PointingDevice, containing:  an abstract method, getXCoord that returns an int and an abstract method, getYCoord that returns an int.

  Application that calculates and displays the total payable

Write a java application that calculates and displays the total payable after applying discount on online grocery orders for N customers. The N should be set as a constant (final) in your application and choose a value between 7 and 9.

  Define get and set functions and two constructors

Create a class called Building. It will have one data member of type string (used for a postal address). Define get and set functions and two constructors.

  Create a new child class and new driver program

In this assignment you will create a new child class and new driver program. Please review that example before continuing with this assignment. You should fully understand the shape program above

  Tasks for an array of integers

Write array methods that carry out the subsequent tasks for an array of integers by completing the ArrayMethods class below. Test each method.

  Web engineering principles

web application development, Web Engineering methodology, UML-based Web Engineering (UWE), models to the expansion of web applications, Object Oriented Web Solutions (OOWS),Web Modeling Language (WebML) methodology, Object-Oriented Hypermedia Design..

  Write a program that displays a countdown first

Write a program that displays a countdown first, and then displays the position and velocity of an object for every second it drops, as long as it is above 500 feet

  Write a generic class called pair that stores two values

Write a generic class called Pair that stores two values of the generic type. It should have a constructor to set them, two methods getfirst()

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