Question: In Java code. Write an interactive program that prompts the user to input a string of words Translate the given sentence to Pig Latin and

In Java code.

In Java code. Write an interactive program that prompts the user to

Write an interactive program that prompts the user to input a string of words Translate the given sentence to Pig Latin and display it. NOTE: Use methodsto make your code as efficient and as organized as possible Correctness is the most important element, however, points will be given for the quality of your code. The Pig Latin system works as follows: Words that start with a vowel (A, E, I, O, U) simply have "way" appended to the end of the word. Words that start with a consonant have the first consonant letter moved to the end of the word and "ay" is appended. Incorporate the following features: Correct the upper case and lower case formatting. All punctuation, numerals, and symbols should not be modified For example: Input: These awful french fries are getting cold Output:Hesetay awfulway renchfay riesfay areway ettinggay oldcay

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!