Design and code a swing gui to translate text

Assignment Help C/C++ Programming
Reference no: EM131609917

Question: Design and code a Swing GUI to translate text that 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 "button bay"; and so forth.

Use a Flow Layout with a J Text Area for the source text and a separate J Text Area for the translated text. Add a J Button 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

Code: Scanner scan = new Scanner("foo bar zot");

while (scan.hasnext())

{

   System.out.println(scan.next());

}

will output

foo

bar

zot

Reference no: EM131609917

Questions Cloud

Design and code swing gui for a two-player tic-tac-toe game : Design and code a Swing GUI for a two-player tic-tac-toe (thoughts and crosses) game on a 3 * 3 game board. The J Frame should use a Border Layout.
Find the variance-covariance matrix for the four assets : Find mean annual returns. Find the variance-covariance matrix for the 4 assets using the matrix multiplication approach.
What is the top hat division sales margin : The Top Hat Division of Blandons Fine Menswear had the following results last year (in thousands), What is the Top Hat Division's sales margin
Explain why people differ from the rational choice paradigm : Explain why people differ from the rational choice paradigm when identifying problems/opportunities, evaluating/choosing alternatives, and evaluating decision.
Design and code a swing gui to translate text : Design and code a Swing GUI to translate text that is input in English into Pig Latin. You can assume that the sentence contains no punctuation.
Explain with a suitable firm and market diagram : What will happen to your answers in (b) in the long run? Explain with a suitable firm and market diagram.
What is the photocopier division sales margin : Selected financial data for the Photocopies Division of Elizabeth's Business Machines is as follows: What is the Photocopier Division's sales margin
Calculate the firm cash conversion cycle : Winston Inc. is trying to determine the effect of its inventory turnover ratio and days sales outstanding on its cash conversion cycle.
Discuss organizational and technical perspectives : Why do you think functional silos are not appropriate for today's organization. Discuss your answer from organizational and technical perspectives.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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