20 likes | 128 Views
The Piglatin Generator. Modify the example on Scanner class to: Read in a sentence (ignore period) Convert the sentence to Piglatin The rule for translating a word from English to Piglatin is: Move the first letter of the word to its end, taking care to make it lowercase Add an “a” to it.
E N D
The Piglatin Generator • Modify the example on Scanner class to: • Read in a sentence (ignore period) • Convert the sentence to Piglatin • The rule for translating a word from English to Piglatin is: • Move the first letter of the word to its end, taking care to make it lowercase • Add an “a” to it
Sample Dialog (Two executions of the Program) Enter a sentence in English: This is a simple English line of text histasiaaaimplesanglisheainelafoaextta Enter a sentence in English: Now is the time for all good men to come to the aid of their country ownasiahetaimetaorfallaaoodgaenmaotaomecaotahetaidaafoaheirtaountryca