Program: Create a loops that reads from memory an array containing an arbitrary number of characters, followed by a period ('.').
The program should make a second character array which is identical to the first, except that the case of every alphabetical letter has been reversed: for example, given the input string "Zx()Yx1234asDF#.", your program would create the string "zX()yX1234ASdf#." and store it in a buffer.
The program may assume that the input string will always contain a single period, which will always be the last character.
It must compile with no errors and follow the directions and please do proper documentation of code.