cdf for funcion including E(X) and V(X)

I seem to have totally messed up this problem because my results do not make sense.

Could anyone please show me where I went wrong? Many thanks.

The weekly demand for propane gas (in 1000s of gallons) from a particular facility is an rv X with pdf

for and 0 otherwise.

a) Compute the cdf of X. =4+1-2-2=1.

b) Obtain an expression for the (100p)th percentile. What is the value of ?

So

. So , So

c) Compute E(X) and V(X).

d) If 1.5 thousand gallons are in stock at the beginning of the week and no new supply is due in during the week, how much of the 1.5 thousand gallons is expected to be left at the end of the week? [Hint: Let h(x) = amount left when demand = x.]

Since my other answers do not make sense, I haven't attempted this one yet.