Create a java application to convert english words to pig


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

Solution Preview :

Prepared by a verified Expert
Programming Languages: Create a java application to convert english words to pig
Reference No:- TGS01129036

Now Priced at $85 (50% Discount)

Recommended (94%)

Rated (4.6/5)