Examination Programming Challenge
Write a program that has an option to read a sentence as input and converts each word to “Pig-Latin.”
To convert a word to “Pig-Latin” you has to remove the first letter and place that letter at the end of the word. Then you append the string “ay” to the word.
Here is an example:
English: I SLEPT MOST OF THE NIGHT
Pig Latin: IAY LEPTSAY OSTMAY FOAY HETAY IGHTNAY
Program also should have the inverse option to convert any “Pig Latin” sentence back to correct sentence. The graphical user interface of this program must include at least two text fields for input and output and two buttons for direct and inverse conversion commands.
Write a program that has an option to read a sentence as input and converts each word to “Pig-Latin.”
To convert a word to “Pig-Latin” you has to remove the first letter and place that letter at the end of the word. Then you append the string “ay” to the word.
Here is an example:
English: I SLEPT MOST OF THE NIGHT
Pig Latin: IAY LEPTSAY OSTMAY FOAY HETAY IGHTNAY
Program also should have the inverse option to convert any “Pig Latin” sentence back to correct sentence. The graphical user interface of this program must include at least two text fields for input and output and two buttons for direct and inverse conversion commands.
No comments:
Post a Comment