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

(2 points) Write a function called changeLetter that can directly alter the valu

ID: 3532554 • Letter: #

Question

(2 points) Write a function called changeLetter that can directly alter the value of a character variable. It takes one argument: a reference to a character. It returns nothing. If the passed in character is alphabetic ('a' to 'z' or 'A' to 'Z'), then make the character become the next higher ASCII value ('a' becomes 'b' etc.). If the passed in character is not a letter, don't alter it.

(2 points) Write a calling statement for the changeLetter function. It takes one argument: a reference to a character and returns nothing. The calling statement should pass the char variable ch so that it is (potentially) altered.

(2 points) Write a calling statement for the changeLetter function. It takes one argument: a reference to a character and returns nothing. The calling statement should pass the 2nd character in a char array called chAr (by second, I mean the sub-oneth) so that it is (potentially) altered.

(2 points) Assume the following function header:

Write an instruction for the function body that will store 10 into the caller's variable referred to by n.

Write a declaration for a variable of type Person and initialize it with your name and the age 10. This should be done as part of the variable declaration statement.

Write a declaration for a variable of type Person and initialize it with your name and the age 10. This should be done as several executable statements.

Assuming that the people array contains 265 valid structs, write code to print out the age member for each item in the structure.

CSCI 240 Spring 2013

Explanation / Answer

//when do you need this by?