I need help making to t-charts.

a. 1 if -1/2 is less than or equal to x less than or equal to 1.
b. x^3 if x>1