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

  Determine the number is prime

Determine if the number is prime. If N is prime, then print a message stating that it is prime - If the integer is not between 0 and 8000000, then the program keeps prompting the user to re-enter the number till the integer is within the proper ran..

  Socket programming in java: tcp

In this project we will develop a Web server in two steps. In the end, you will have built a multi-threaded Web server that is capable of processing multiple simultaneous service requests in parallel.

  Program that inputs a word representing a binary number

Write a program that inputs a word representing a binary number (0s and 1s). First your program should verify that it is indeed a binary number, that is the number contains only 0s and 1s.

  Way to organize the flowers

Prepare a java program using given conditions- He wanted a way to organize the flowers that he picks for her each day and perform a few basic tasks with them, along with a few restrictions. It is our goal to help him out

  Write a for loop that computes the sum of all integers

Write a for loop that computes the sum of all integers from 1 to 10

  Square with a rectangle of the same size

Write a Java statement to initialize a variable square with a rectangle object whose top left corner is (10, 20) and whose sides all have length 40. Then write a statement that replaces square with a rectangle of the same size and top left corner ..

  Evaluate the rtas resource requirements

Design and implement a set of classes and interfaces and use them to evaluate the RTA's resource requirements.

  Develop a java application for the local library

Develop a Java application for the local library as part of an upgrade initiative. As in all libraries, this is a place where one can check out books.

  Questions1 design and implement an applet called circles

questions1. design and implement an applet called circles that draws 50 circles of random diameter in random locations.

  Design the appropriate accessor and mutator methods

Design an Employee class that has fields for the following pieces of information: Employee Name Employee Number Next, design a class named ProductionWorker that extends the Employee class.

  Design a java application that will read a file containing

Design a Java application that will read a file containing data

  Console application for a small car servicing company

Develop a program for the service department staff - Console application for a small car servicing company

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