Answer
See graph and explanations.
Work Step by Step
Using the graph in the exercise, given the line segment of $y=f(x)$, we can obtain the new line segment of $g(x)=-f(\frac{1}{2}x)+1$ by first stretching the original horizontally two times, reflecting the result around the x-axis and then shift it up 1 unit (shown as the new red line segment in the figure).