conditional statements

Plot the following function using conditional statements in the domain -2<x<5.
f(x)= {(1)15 (2)-5x+10 (3)-10x^2+35x-20 (4)-5x+10 (5)-10)}
{(1)x?-1 (2)-1<x?1 (3)1<x?3 (4)3<x?4 (5) x>4)}
To make a proper plot, as a reminder, choose an appropriate step size for x. Note: use a for loop with conditional statements. The Number in front of each function corresponds to its domain.

READ ALSO :   Pearl Harbor by Steven M. Gillon