about | help | code help+videos | done | prefs |
Write a method that returns 'str' but with each lower-case vowel (a, e, i, o, u) surrounded by "(" and ")". Look at the test data for examples. You MAY solve this recursively, but recursion is NOT required. feb_22_2019_APSLHL_surroundVowels("ranch dressing.") → "r(a)nch dr(e)ss(i)ng." feb_22_2019_APSLHL_surroundVowels("This is a fun problem to solve. Quite easy.") → "Th(i)s (i)s (a) f(u)n pr(o)bl(e)m t(o) s(o)lv(e). Q(u)(i)t(e) (e)(a)sy." feb_22_2019_APSLHL_surroundVowels("All Upper Case Vowels Are Ignored.") → "All Upp(e)r C(a)s(e) V(o)w(e)ls Ar(e) Ign(o)r(e)d." ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 290
Copyright Nick Parlante 2017 - privacy