Thursday, December 13, 2018

Pig-Latin Converter

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.

No comments:

Post a Comment

N-point Star in Microsoft Visual Studio Console App

#include <windows.h> #include <cmath> #include <iostream> LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam,...