Create a java application to convert english to pig latin

Assignment Help Programming Languages
Reference no: EM13848849

Pig Latin is a constructed language where English words are altered according to a simple set of rules.

The objective is to conceal the meaning of the words from others not familiar with the rules. The reference to Latin is a deliberate misnomer, as it is simply a form of jargon, used only for its English connotations as a "strange and foreign-sounding language."

The rules for converting from English to Pig Latin can be elaborate, but we will adopt the following rules which are simpler:

• For words that begin with vowels (a, e, i, o, u), the letters "yay" are added to the end of the word.

• For words that begin with consonants, the initial consonant is moved to the end of the word, and "ay" is added.

Here are some examples:

English Word Pig Latin

egg eggyay

yellow ellowyay

happy appyhay

duck uckday

glove lovegay

pig igpay

banana ananbay

trash rashtay

ugly uglyyay

Create a java application to convert English words to pig Latin using the above rules.

Put the code in a loop to continue prompting for more words to convert.

Here is an example of how the program might appear

Name the Java Class: PigLatinConverter

Java Application 2 - Sentence Analyzer

Create a java application to read a line from the keyboard and display the following statistics.

Number of characters entered in the line

Number of letters in the line

Number of Digits in the line

Number of spaces in the line

Number of uppercase letters in the line

Number of lowercase letters in the line

Here is an example of how the program might appear:

Name the Java Class: SentenceAnalyzer

Reference no: EM13848849

Questions Cloud

What amount should sharp report current income tax payable : There were no deferred income tax rate was 35% in 2009 and 40% thereafter. In its 2011 balance sheet, what amount should sharp report as current income tax payable?
Create an object-oriented solution : Create an object-oriented solution that performs the following tasks:Allows for the entry into the phone book using pre-identified information or user input information
What you learned about project management in general : What you learned about project management in general. Be specific and include references to your sources, one of which may be the textbook. What you thought of PMI's site. Be specific. Generalities will not be sufficient
What is the income tax refund receivable : Year Income (loss) Tax rate Income tax 2009 30,000 35% 10,500 first year of operations 2010 45,000 30% 13,500 2011 (60,000) 30%0 What is the income tax refund receivable?
Create a java application to convert english to pig latin : Create a java application to convert English words to pig Latin using the above rules.
What was centipedes income tax payable currently : In the absence of other temporary or permanent differences, what was Centipede's income tax payable currently, assuming a tax rate of 40%?
Show which alternative maximizes expected value : Outcomes for the three alternatives are expected to be (1) $2,000 in boom or $500 in bust for ORC; (2) $6,000 in boom but $-5,000 (loss) in bust for FBN; and (3) $1,200 for the certificate in either case. Set up a payoff table (decision matrix) fo..
Value of the marginal propensity to consume : What is the value of the marginal propensity to save in economy - What is the value of the marginal propensity to consume?
Prepare the compound journal entry to record roberts corp : Roberts Corp. reports pretax accounting income of $200,000. Prepare the compound journal entry to record Roberts Corp.'s income taxes. Show well-labeled computations.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

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

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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