Step 1: Split the integral according to greatest integer function.
Since \([x]\) changes at integers, split the integral as
\[
\int_0^3=\int_0^1+\int_1^2+\int_2^3
\]
Step 2: For \(0\leq x<1\).
Here, \([x]=0\) and \(|x-1|=1-x\).
\[
I_1=\int_0^1(1-x)dx
\]
\[
I_1=\left[x-\frac{x^2}{2}\right]_0^1=\frac12
\]
Step 3: For \(1\leq x<2\).
Here, \([x]=1\) and \(|x-1|=x-1\).
\[
I_2=\int_1^2\left((x-1)-x\right)dx
\]
\[
I_2=\int_1^2(-1)dx=-1
\]
Step 4: For \(2\leq x\leq 3\).
Here, \([x]=2\) and \(|x-1|=x-1\).
\[
I_3=\int_2^3\left((x-1)-2x\right)dx
\]
\[
I_3=\int_2^3(-x-1)dx
\]