Write a class called palatine that converts an stl string


Program 1: Write a class called palatine that converts an STL string into Pig Latin form. The rules for converting a string into Pig Latin are as follows.

Question 1: If the string begins with a vowel (a, e, i, o, u), append the string "-way". For example, the pig Latin form of awful is awful-way.

Question 2: If the string begins with a consonant (not a vowel), append "-" to the string then rotate the string one character at a time by moving the first character to the end until the first character becomes a vowel; then, append "ay". For example, the pig Latin form of "form" is "orm-fay".

Question 3: If a string has no vowel, such as "try", move the consonant cluster (try in this example) to the end and add the prefix 'ay'. For example, "try" is "ay-try". At least one constructor that takes an STL string argument.

2. Constant members to return the English and Pig Latin forms of the string.

3. An overloaded operator << for displaying the strings.

4. Data members that store the original string and the converted string.

5. A class friend

PLEASE ensure it compiles and write the full program to receive full credit. Thank you so much for your help.

 

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Write a class called palatine that converts an stl string
Reference No:- TGS0955533

Expected delivery within 24 Hours