Question: This is a C program. For this assignment, you will write a function that converts a single English word to its pig Latin equivalent. That
This is a C program.

For this assignment, you will write a function that converts a single English word to its pig Latin equivalent. That function should have a header as follows: char * convertToPigLatin (char * engstr, char * pLatinStr) You'll note that it takes two char * as input and returns a char *, as expected. The two inputs are pointers to the English string and the converted Pig Latin string respectively. The return value should be a pointer to the Pig Latin string. That return value can then be assigned to a variable and used to print out the converted string, either to the console or to a file. Your program should then perform the following steps: Open a file for input called pigLatinIn.txt, which will be provided to you. This file will consist of one English word per line. Open a file for output called pigLatinout.txt Your program will then read the input file, use the convertToPigLatin () function to determine the pig Latin equivalent to the word, then write the following to the output file: English word Pig Latin Word cabin abin-cay apple apple-way Print out the results in all lower case
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
