// calm_down.c // // Written by YOUR-NAME (YOUR-ZID) // on TODAYS-DATE // // Calms down an overly enthusiastic message by replacing every '!' with // a '.'. #include #include #define MAX_LENGTH 200 void remove_newline(char input[MAX_LENGTH]); // ---------------------------------------------------------------------------- int main(void) { char message[MAX_LENGTH]; // TODO: Complete the program return 0; } // ---------------------------------------------------------------------------- // PROVIDED FUNCTIONS // ---------------------------------------------------------------------------- // Helper function to remove the newline character from the end of a string void remove_newline(char input[MAX_LENGTH]) { int length = strlen(input); if (length > 0 && input[length - 1] == '\n') { input[length - 1] = '\0'; } }