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 (

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!