Remark
This question likely should be done before the other one. What you are trying to do is give C a value. So you need to remember that C is always part of an indefinite integral.
y =

y = sin(x) - cos(x) + C
y(π) = sin(π) - cos(π) + C = 0
y(π) = 0 -(-1) + C = 0
y(π) = 1 + C = 0
C = - 1
y = sin(x) - cos(x) - 1 <<<<< AnswerProblem Two
Remember that

y( - e^3 ) = ln(|x|) + C = 0
y(-e^3) = ln(|-e^3|) + C = 0
y(-e^3) = 3 + C = 0
3 + C = 0
C = - 3
y = ln(|x|) - 3 <<<< Answer