Question: 4 THE CRAZY CAPS PROBLEM Write a function named crazyCaps ( that accepts a string as a output parameter and changes that string to have
4 THE CRAZY CAPS PROBLEM Write a function named crazyCaps ( that accepts a string as a output parameter and changes that string to have its capitalization altered such that the characters at even indexes are all in lowercase and odd indexes are all in uppercase. For example, if a variable s stores "Hey!! THERE!", then the call of crazyCaps (s); should change s to store "hEy! tHeRe!". Do not use any string functions from the standard library other than length() and at) or Remember that you can find the difference between upper and lowercase characters by subtracting A' from 'a'.Do not use the topper() or tolower() macros from cctype
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
