Question: Need help in C++ /** * * CIS 22A */ #include using namespace std; bool isLetter(char letter); //Given a char, uses ASCII to determine if
Need help in C++

/** * * CIS 22A */ #include using namespace std; bool isLetter(char letter); //Given a char, uses ASCII to determine if it is a letter //Returns true if is a letter (a-z or A-Z) //Returns false if it is not a letter //isLetter('d') -> true //isLetter('D') -> true //isLetter('!') -> false bool isNumber(char num); //Given a char, uses ASCII to determine if it is a number //Returns true if is a number (0-9) //Returns false if it is not a number //isNumber('a') -> false //isNumber('3') -> true void capitalize(char& letter); //Given a char that is a valid letter (a-z or A-Z) //Capitalizes the letter if it is a lower case, //Leaves the letter unaltered if it is an upperCase //capitalize('a') - > 'A' //capitalize('A') -> 'A' void spaceToComma(string& list); //Given a string, alters any blank spaces in the string //to be commas. Hint: Use a for loop, and string indexing //spaceToComma("cats hats bats") -> "cats,hats,bats" //spaceToComma("I love cookies! ") -> "I,love,cookies!," bool first10Last(int data[], int size); //Given an array of ints, return true if 10 appears as //either the first or last element in the array. The array will be size 1 or more. //first10Last([1, 2, 10], 3) true //first10Last([10, 1, 2, 3], 4) true //first10Last([13, 10, 1, 2, 3], 5) false bool equalFirstLast(int array[], int size); //Given an array of ints, return true if the array is size 1 or more, //AND the first element and the last element are equal. //equalFirstLast([1, 2, 3], 3) false //equalFirstLast([1, 2, 3, 1], 4) true //equalFirstLast([1, 2, 1], 3) true void printArray(int array[], int size); //prints the contents of an array with a for loop //see class notes for examples void arrayPlus2(int array[], int size); //Given an array of ints, add 2 to each element in the array //return nothing. Remember arrays are automatically pass by reference //arrayPlus2([1,2,3],3) -> [3, 4, 5] //arrayPlus2([10, 30, 50, 79, 85], 5) -> [12, 32, 52, 81, 87] //arrayPlus2([5], 1) -> [7] void squareArray(int array[], int size); //Given an array of ints, add multiplies each element in the array by itself //return nothing. Remember arrays are automatically pass by reference //squareArray([1,2,3],3) -> [1, 4, 9] //squareArray([3, 5, 6, 8, 9], 5) -> [9, 25, 36, 64, 81] //squareArray([5], 1) -> [25] int main() { int result; bool answer; string value; cout Write the required functions as described by the prototypes and comments The functions should be written below main. Then, run the code when you are finished to see if you wrote the functions correctly. Check the test results and make any alterations to your functions as necessary When a of the tests pass, upload your code to Catalyst