#K71517. String Manipulation Functions

    ID: 33549 Type: Default 1000ms 256MiB

String Manipulation Functions

String Manipulation Functions

This problem involves implementing three simple string manipulation functions:

  • \(\text{capitalize\_words}(s)\): Capitalizes the first letter of each word in the input string.
  • \(\text{remove\_vowels}(s)\): Removes all vowels (a, e, i, o, u, A, E, I, O, U) from the input string.
  • \(\text{reverse\_string}(s)\): Reverses the input string.

You are required to implement these functions and integrate them into one solution that reads input from stdin and prints the results to stdout, each result on a separate line.

inputFormat

The input consists of three lines:

  1. The first line will be used for the capitalize_words function.
  2. The second line will be used for the remove_vowels function.
  3. The third line will be used for the reverse_string function.

outputFormat

Output should be three lines:

  1. The capitalized string from the first input line.
  2. The string with vowels removed from the second input line.
  3. The reversed string from the third input line.## sample
hello world
hello
hello
Hello World

hll olleh

</p>