The above question has the following answer:-
The answer is option C). This is how we arrive at the answer.
We are asked to find the coordinates of the view port. The information is given to fix the coordinates from that of the window to the view port..
Following information is given:-
$(X_{wmin},Y_{wmin})=(0,0)$
Point $(X_w,Y_w)=(20,15)$
$(X_{wmax},Y_{wmax})=(100,100)$
$(X_{vmin},Y_{vmin})=(5,5)$
$(X_{vmax},Y_{vmax})=(20,20).$
We have to find the value of $(X_v,Y_v).$
The following formula is used:-
$\frac{X_v-X_{vmin}}{X_{vmax}-X_{vmin}}=\frac{X_w-X_{wmin}}{X_{wmax}-X_{wmin}}$ (for $X_v$coordinate)
$\frac{Y_v-Y_{vmin}}{Y_{vmax}-Y_{vmin}}=\frac{Y_w-Y_{wmin}}{Y_{wmax}-Y_{wmin}}$(for $Y_v$ coordinate)
Now substitute the values in the equation and the answer evaluates to option c) which is $(X_v,Y_v)=(8,7.25)$