Continuity in functions

The function y is defined as indicated below with three pieces.
The parameters c and m need to be chosen so the function is continuous.