Question: C++ please follow all requirements Program Description: This is a not an ordinary Pig Latin. Write a program that reads a sentence as input and

C++ please follow all requirements
C++ please follow all requirements Program Description: This is a not an
ordinary Pig Latin. Write a program that reads a sentence as input

Program Description: This is a not an ordinary Pig Latin. Write a program that reads a sentence as input and converts each word from English to "Pig Latin". In this version, to convert a word to Pig Latin you would follow the following steps: 1. First convert the sentence to upper case, 2. Find the substring "ig (regardless of case). If there is one, remove the rest of the sentence include "ig". 3. And then you append the c-string "ay" (in lower case) to the end of the sentence. 4. Append the length of the sentence to the end. 5. Now covert the sentence back to lower case Here are some examples: English might P latin Pig Latina English No 1-Ghare Pig La h ray17 * notice in the last example, 1-G is NOT continuous, so it not the same as "IG" Repeat until user has entered a "QUIT" (regardless of case). You are required to use c-strings for this program. Functions: Main function should be shorter than half a page. This functie de c o pper This function should come to vaid find e r ) This function rom the rest of the in the given cring and ngine be This function should "Gand the of the Appenda were fully removed and the end This functie de por a while opt memput loppeme n andappedy in that p e r has entered qui medic Ourepte, but not Digor D ame Out when the process is fish Hints: 1. "ay" will be attached to the end of the c-string regardless 2. No inputs are longer than 180 characters, guaranteed. 3. No input validation needed. (everything and anything has a corresponding interpretation in Pig Latin) 4. When user enters "quit" (regardless of case), you should display a message "Quit!" Sample Output: Sample Output: Please enter a string cerquillaste the preces Please enter a q uilo stop the process q uilt stop the process Please enterar No " G hee og hercay17 Please enter a string quit to stop the process First they ignore you then they what you, then they fight you, then you win first they ay 13 Please contra string quit to stop the process then they fight you, then you wis then they ay 13 Please enter a string quit to stop the process rayo Please enter a wing quilosop the process quita Please enter a string cher quit to stop the proces Other requirements: 1. C-string(s) should be dynamically allocated. All memory dynamically allocated should be freed as soon as you are finished with a task. 2. Use functions as provided in the section above. Functions should not be modified. 3. Follow programming style guideline very carefully a. Points will be taken off for all violations 4. Your output style has to match with my output shown below (although you can try different user input). 5. When accessing array, use only pointer syntax. You should only use ptr or *ptr for accessing memory addresses or values. You cannot use 1] 6. NO global variables permitted 7. All functions must have prototypes. 8. Store all values as variables, do not hardcode any values (for example: size should be saved as a variable). Use constant variables as much as possible a. const int SIZE = 81; 9. Use a line separator between all function definitions. (1/**** 101 stars******, blank line before and after) 10. All assignments must be submitted and run as specified to pass the course (see syllabus) 11. Copy and paste your output at the end of your program. Comment out the output lines

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!