wes d2a2ba9e15 first commit | 4 years ago | |
---|---|---|
.. | ||
README.md | 4 years ago | |
code.cpp | 4 years ago | |
unitTest.cpp | 4 years ago |
by Alex Golubov tags: loops, arrays, formatting
Create a function that takes an array of names and returns an array where only the first letter of each name is capitalized. Examples capMe(["mavis", "senaida", "letty"]) ➞ ["Mavis", "Senaida", "Letty"] capMe(["samuel", "MABELLE", "letitia", "meridith"]) ➞ ["Samuel", "Mabelle", "Letitia", "Meridith"] capMe(["Slyvia", "Kristal", "Sharilyn", "Calista"]) ➞ ["S
Create a function that takes an array of names and returns an array where only the first letter of each name is capitalized.
capMe(["mavis", "senaida", "letty"]) ➞ ["Mavis", "Senaida", "Letty"]
capMe(["samuel", "MABELLE", "letitia", "meridith"]) ➞ ["Samuel", "Mabelle", "Letitia", "Meridith"]
capMe(["Slyvia", "Kristal", "Sharilyn", "Calista"]) ➞ ["Slyvia", "Kristal", "Sharilyn", "Calista"]