Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

write a function which takes one string variable (not C string) as input and mod

ID: 3639405 • Letter: W

Question

write a function which takes one string variable (not C string) as input and modifies the existing string. try to find "Ohio" or "OHIO" in the input string. if the input string contains either of these, replace those 4 characters with "OH". as an example,
Original string = "Blacklick, Ohio 43004"
Modified string = "Blacklick, OH 43004"
Use an appropriate parameter passing mechanism. your function will not do any cin or cout. do not write a main function. make sure to properly format all your code.

Explanation / Answer

void fun(String s) { String s2;String s3; for(i=0;i