1 / 2

The Piglatin Generator

The Piglatin Generator. Write a Java program that: Reads in a sentence (ignore period) Converts it 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.

baka
Download Presentation

The Piglatin Generator

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. The Piglatin Generator • Write a Java program that: • Reads in a sentence (ignore period) • Converts it 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

  2. 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

More Related