Your answer for A is correct.

For B, you want to find c such that .

For C, you need to calculate the value of four integrals:

Find the value of a such that:

Note: I simplified the problem by shifting the graph down 3 units, so you'll have to add 3 to the value of a in order to get the actual answer.