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 program to calculate tips for services rendered

Write program to calculate tips for services rendered. The program must request person's occupation, amount of the bill and the percentage tip as input

  Create logic to enter item until sentinel value is entered

Create a logic for and create the application allows user to enter an order item continuously until a sentinel value is entered.

  Create program which tests each member of resistor class

Create program which tests each member of Resistor class to ensure that they work properly. Complete the following Tasks: Create main function and instantiate three Resistor Class objects: Resistor1, Resistor2 and Resistor3.

  Explaining class definition of subclass of square

Write down the class definition of subclass of Square called FancySquare which has a method called getDiagonal. The getDiagonal method gets no arguments.

  Find the output displayed when the button is clicked

Determine the output displayed when the button is clicked

  Design a grade average program using raptor

Design a grade average program using raptor that will produce the numerical grade average of test scores input by a user

  Write program to display company payroll report in list box

Write a program that display a company payroll report in a list box. the program should read each employees name, hourly rate and hours worked from a file and produce a report.

  Write a program that reads an input line from the user

Write a program that reads an input line from the user (until the new-line character \n) and displays the number of times each lower-case letter appears in it (Everything else in the input except lower-case letters can be ignored.)

  Which protocol is using by video game programmers udp or tcp

What protocol do you think video game programmers would use UDP or TCP. Why do you think the game uses one or the other protocols

  Write a program to show simplified bill

Write a program to show a simplified bill. Customers name, number of hours of labor, and cost of parts and supplies must be entered into program via text boxes.

  Design program that asks user to enter budgeted amount

"Design a program that asks the user to enter the amount that he or she has budgeted for a month. (For example: $2,000.00)

  Create link invisible to begin-display after submit button

Create link invisible to begin but display it after Submit button has been clicked. Confirmation page should say "Thank you for your order".

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