Google ClassroomGoogle Classroom
GeoGebraGeoGebra Classroom

Construction of "Check Your Answer" Part

1. Set each point in the polygons to be inside their region that they belong by using input. Write IsInRegion(, ) such as IsInRegion(A,polygon 3) Apply this for all polygons and their regions. 2. Write a random text called 'anstxt' by using Toolbar Image 3. Costruct a button called 'Check your answer ' by using Toolbar Image , link this button with anstxt and write inside of this button that: If( (a==o+a_1+b_1+c_1+d_1+n_1+o_1+p_1+s_1)&&(b==t_1+u_1+v_1+w_1+a_2+b_2+c_2+d_2+n_2)&&(c==o_2+p_2+q_2+r_2+s_2+t_2+u_2+v_2+w_2),SetValue(anstxt,"Your answer is correct!" ),SetValue(anstxt,"Your answer is incorrect!")) If( (a==o+a_1+b_1+c_1+d_1+n_1+o_1+p_1+s_1)&&(b==t_1+u_1+v_1+w_1+a_2+b_2+c_2+d_2+n_2)&&(c==o_2+p_2+q_2+r_2+s_2+t_2+u_2+v_2+w_2), SetBackGroundColor(anstxt,Green), SetBackGroundColor(anstxt,Red)) 4. Also, write inside of the button called 'Get a Random Number' that: SetValue(anstxt,"Your answer is...") SetBackGroundColor(anstxt, White)

You can test it here!

You can check your work in here!