For the norm, I'm using the definition: $$||\phi||=\sup\{|\phi(f)|: f\in C[0,1], ||f||\leq1 \}$$
I was able to prove that
For $f\in C[0.1]$ With $||f||\leq1$,
$|\phi(f)|\leq\left|\int\limits_{0}^{1/2}f\right|+\left|\int\limits_{1/2}^1f\right|\leq\int\limits_{0}^{1/2}|f|+\int\limits_{1/2}^1|f|\leq 1$ Thus $||\phi||\leq 1$
And for the other side of the inequality, I chosed the functions $f_{\epsilon}$ where it takes $+1$ for $x\in[0,1/2-\epsilon]$ , $-1$ for $x\in[1/2+\epsilon,1]$ and for the $x\in[1/2-\epsilon,1/2+\epsilon]$, $f(x)$ will be the straight line joining $+1$ with $-1$.
Thus it gives $|\phi(f)|=1-\epsilon$
So $||\phi||\geq1-\epsilon$ for all $\epsilon>0$.
That is $||\phi||\geq1$
Therefore $||\phi||=1$
But how can I prove that there cannot be any function on $C[0,1]$ such that $||f||\leq 1$ and $|\phi(f)|=1$.
I think this has to do something with the function being continuous at $1/2$ but I don't really see how I should do it.
Suppose $\|f\| \leq 1$ and $\phi (f)=1$. Then $1=\int_0^{1/2} f(x)dx-\int_{1/2}^{1} f(x)dx \leq \int_0^{1/2} 1dx+\int_{1/2}^{1} 1dx =1$. This implies that $f(x)=1$ for all $x <\frac 1 2$ and $-f(x)=1$ for all $x >\frac 1 2$ because if strict inequality holds at some point (then it holds throughout some open interval around the point and ) you will get the contradiction $1<1$. But now $f(x)=1$ for all $x <\frac 1 2$ and $f(x)=-1$ for all $x>\frac 1 2$ contradicting the fact that $f$ is continuous.