
Write a program that transforms each argument so that the last alphabetic character of every word is uppercase and every other letter is lowercase.
./word_tail_caps "less yak shaving more shipping"Expected result
lesS yaK shavinG morE shippinG
For your own tracking. Tests grade your code.
./word_tail_caps "gcc complained again" "fix it now!"Expected result
gcC complaineD agaiN
fiX iT noW!
./word_tail_capsExpected result
wrong number of arguments
Expected files
word_tail_caps.cAllowed functions
write
v0.40: Create exercises. Challenge the community.
Meet Studio →Write a program that transforms each argument so that the last alphabetic character of every word is uppercase and every other letter is lowercase.
./word_tail_caps "less yak shaving more shipping"Expected result
lesS yaK shavinG morE shippinG
For your own tracking. Tests grade your code.
./word_tail_caps "gcc complained again" "fix it now!"Expected result
gcC complaineD agaiN
fiX iT noW!
./word_tail_capsExpected result
wrong number of arguments
Expected files
word_tail_caps.cAllowed functions
write
Run the tests to grade your code
Build your code, then check each test here. Open a result to inspect its output.