Java Application 1 – Latin Converter
Pi 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 Pi 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 Pi Latin
egg eggyayyellow ellowyayhappy appyhayduck uckdayglove lovegaypi igpaybanana ananbaytrash rashtayugly uglyyay
Create a java application to convert English words to pi 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: PiLatinConverter
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 lineNumber of letters in the lineNumber of Digits in the lineNumber of spaces in the lineNumber of uppercase letters in the lineNumber of lowercase letters in the line
Here is an example of how the program might appear:
Name the Java Class: SentenceAnalyzer
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more