Question: Complete CapVowels ( ) , which takes a string ( c h a r * * ) as a parameter and returns a new string
Complete CapVowels which takes a string as a parameter and returns a new string containing the string parameter with
only the first occurrence of each of the five English vowels and capitalized.
Hints: Begin CapVowels by creating a newly allocated string with the same size as the string parameter. Use strlen to obtain the
length of a string.
Strings are by default stored using ASCII encoding. Consider how you can switch between lowercase and uppercase letters using this
information
Ex: If the input is:
management
the output is:
Original: management
Modified: mAnagEment
LAB
ACTIVITY
: LAB: Capitalizing vowels
main.cpp
Load default template...
#include
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
