Question: Name of function: void stringConcatenation (char *A, char This function will take two strings, A and B, as parameters. It will combine them such that
Name of function: void stringConcatenation (char *A, char This function will take two strings, A and B, as parameters. It will combine them such that B is appended to the end of A. For example, given A-abcd" and B-"efgh", the function will change A so that it now contains "abcdefgh". String B will be unchanged by the function. Name of function: int stringPosition(char *A, char B) This function wl take a string and a character as parameters. It will return the position in the string of the first occurrence of the character. The first character in the string is in position 0. If the string does not contain the character, it returns -1 Name of function: int stringLength(char *A) This function will take a char array as a parameter. It will shift all the characters of the string to the right by one and store the length of the string in position zero. The length of the string does not include the null character. The function will return the length which is stored in position zero. Example Array before the function call Index of array0 23 Value at index 'A" B C0 Array after the function call Index of array 01 2 3 4 Value at index 3 "A"B' 'C' You MUST NOT use any C/C++built-in string manipulation func tions in your implementation! File read/write example # include #include using namespace std; //Place these at the global level ifstream in"input.txt") read from ofstream out("output.txt");output.txt is the file that we //input.txt is the file that we Develop five modules to replace some of the built-in C/C++ string functions. Use char arrays to store strings. Remember that a null character is used to terminate a string. You will be using loops to process the contents of the array, character by character Make sure to test your program. Display the contents of the arrays after each function call. The strings that are to be passed into the functions should be grabbed from a text file called "in.txt" The file "input.txt" will contain five lines of data, corresponding to each of the five functions. Here is a sample: Hello Hi Great Good Good bye Salaam m Bonjour As you are working on these modules, consider what the preconditions, postconditions and the invariants would be. You don't have to implement them. For example, how big should the arrays be, what happens to the length function if the number of characters go beyond nine characters Name of function: void stringCopy(char *A, char *B) The function will take two strings, A and B, as parameters. It will replace the contents of string A with the contents of string Name of function: bool stringCompare(char *A, char *B) This function will take two strings, A and B, as parameters and return a bool. It will return true if the strings are exactly the same, character by character, and false otherwise. The function will be case sensitive, that is, A'-'a Name of function: void stringConcatenation (char *A, char This function will take two strings, A and B, as parameters. It File read/write example #include #include using namespace std; //Place these at the global level ifstream in("input.txt"); read fromm ofstream out"output.txt") Woutput.txt is the file that we write into input.txt is the file that we int maino char from[15], to[15]: double distance; // can use in.good0 to check if for end of file while (in.goodo) in from>to>>distance; outfromfrom>>to>>distance; outfrom