Home /
Expert Answers /
Computer Science /
functions-10-skyline-define-a-function-called-myfunc-that-takes-in-a-string-and-returns-a-matchi-pa618
(Solved): Functions #10: skyline Define a function called myfunc that takes in a string, and returns a matchi ...
Functions #10: skyline Define a function called myfunc that takes in a string, and returns a matching string where every even letter is uppercase, and every odd fefter is lowercase. Assume that the incoming string only contains letters, and don't worry about numbers, spaces or punctuation. The output string can start with either an uppercase or lowercase letter, so long as letters alternate throughout the string. Remember, don't run the function, simply provide the definition. To give an idea what the function would took like when tested: nyfunc('Anthroposorphisn') * Output: "aNtHrOp0a0rPhIsH" Added note: this exercise requires that the function refum a string. Print statements will not work here.
Hello, The code for the above function is given below: (In C++ language): Code: #include #include using namespace std; //defining the function 'myfunc' which ta