akosiraff

Download PigLatinConverter & SentenceAnalyzer

Oct 20th, 2014
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1.  
  2. Download: http://solutionzip.com/downloads/piglatinconverter-sentenceanalyzer/
  3. Java Application 1 – Pig Latin Converter
  4. Pig Latin is a constructed language where English words are altered according to a simple set of rules.
  5. 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.”
  6. The rules for converting from English to Pig Latin can be elaborate, but we will adopt the following rules which are simpler:
  7. • For words that begin with vowels (a, e, i, o, u), the letters “yay” are added to the end of the word.
  8. • For words that begin with consonants, the initial consonant is moved to the end of the word, and “ay” is added.
  9. Here are some examples:
  10. English Word Pig Latin
  11. egg eggyay
  12. yellow ellowyay
  13. happy appyhay
  14. duck uckday
  15. glove lovegay
  16. pig igpay
  17. banana ananbay
  18. trash rashtay
  19. ugly uglyyay
  20. Create a java application to convert English words to pig Latin using the above rules.
  21. Put the code in a loop to continue prompting for more words to convert.
  22. Here is an example of how the program might appear
  23. Name the Java Class: PigLatinConverter
  24. Java Application 2 – Sentence Analyzer
  25. Create a java application to read a line from the keyboard and display the following statistics.
  26. Number of characters entered in the line
  27. Number of letters in the line
  28. Number of Digits in the line
  29. Number of spaces in the line
  30. Number of uppercase letters in the line
  31. Number of lowercase letters in the line
  32. Here is an example of how the program might appear:
  33. Name the Java Class: SentenceAnalyzer
  34. Download: http://solutionzip.com/downloads/piglatinconverter-sentenceanalyzer/
Add Comment
Please, Sign In to add comment