Google ClassroomGoogle Classroom
GeoGebraGeoGebra Classroom

Construction the Game

Step 1

  1. Construct a point A=(0,0,0)
  2. Construct a polygon near to point (0,0,0) in third region of cartesian coordinate system. (poly_1, poly_2, poly_3, poly_4)
  3. Construct a new point on object on the polygon. (B)
  4. Construct a line through (A,B). f(A,B)
  5. Construct a circle with center the point A through the point B.
  6. Construct a point on x-axis. (C)
  7. Construct a point on another intersection of circle and the line f. (D)
  8. Construct an angle between (C,A,D). (angle p)
  9. Construct a distance (A,D). (distance r)
  10. Define a number as a tan(p). tanp=tan(p)
  11. Define a number as a sec(p). secp=sec(p)
  12. Define y=x*tanp- (secp^(2)x^(2))/(20r^(2))  (h)

Step 1

Step 2

  1. Define x=18. (line l)
  2. Construct three points  on (17,0), (15,0), (13,0). ( C_1,C_2,C_3)
  3. Construct three circles with center the point C through the point C_1,C_2,C_3. ( circles c_1, c_2, c_3)
  4. Construct the intersection points of line l and circles c_1, c_2, c_3. ( int_1, int_2, mid_1, mid_2, ext_1, ext_2)
  5. Create a segment [int_1int_2] (s_i)
  6. Create a segment [mid_1int_1] (s_m1)
  7. Create a segment [mid_1ext_1] (s_e1)
  8. Create a segment [mid_2int_2]  (s_m2)
  9. Create a segment [mid_2ext_2]  (s_e1)
  10. Construct a vector u (B,D). (vector)

Step2 Test Yourself! (You do not need to repeat step 1. You can work on just step2.)

"WHY" QUESTION!

Why do you think that we construct a polygon on Step1?

Step 3

  1. Define intersect(h,l), intersect(h,s_i), intersect(h,s_m1), intersect(h,s_e1), intersect(h,s_m2), intersect(h,s_e1).
  2. Create slider “ext” from 1 to 3 with increment 1.
  3. Create slider “mid” from 4 to 6 with increment 1.
  4. Create slider “int” from 7 to 9 with increment 1.
  5. Create slider “den” from 1 to 9 with increment 1.
  6. Create a text located at s_e1, (text1) formulate fraction (as ext/den) in LateX.
  7. Create a text located at s_m1, (text2) formulate fraction (as mid/den) in LateX.  
  8. Create a text located at s_i, (text3) formulate fraction (as int/den) in LateX.

Step 4

  1. Define the same function h on interval -2=<x=<18. (q)
  2. Construct three point on object q. ( U, V, W)
  3. Create CheckBox for U,V,W. ( U_1, V_1, W_1 with boolean value u,v,w)
  4. Create slider “shottot” from 0 to 3 with increment 1.
  5. Create slider “shot1” from 0 to 3 with increment 1.
  6. Create slider “shot2” from 0 to 3 with increment 1.
  7. Create slider “shot3” from 0 to 3 with increment 1.

Step 4 Test Yourself!

Create a table in LateX!!

\begin{tabular}{|l|l|l} \hline DataSet &Your Shots \\ \ hline text1 & Shot1 \\ \hline text2 & shot2 \\ \hline Text3& Shot3 \\ \hline\end{tabular} You need to create a text and write those LateX Formula. It will show a table on the screen.

Step 5

  1. Create a button (THROW). (button1)
  2. Create a new button (RESET). (button2)
  3. Create a button (NEXT). (button3)
  4. Create CheckBox for THROW button. (t_1)
  5. Create CheckBox for NEXT button. (n_1)
  6. Write the script of the button (THROW) is as follows:
If(J==E∨J==I,SetValue(shot1,shot1+1)) If(J==H∨J==F,SetValue(shot2,shot2+1)) If(J==G,SetValue(shot3,shot3+1)) SetValue(shottot,shottot+1) If(shottot==1,StartAnimation(U),SetValue(u,False)) If(shottot==1,SetValue(u,true)) If(shottot==2,StartAnimation(V),SetValue(v,False)) If(shottot==2,SetValue(v,true)) If(shottot==3,StartAnimation(W),SetValue(w,False)) If(shottot==3,SetValue(w,true)) SetValue(t_1,false)
  1. Write the script of the button (RESET) is as follows:
SetValue(shot1,0) SetValue(shot2,0) SetValue(shot3,0) SetValue(shottot,0) SetValue(B,(-2,0,0)) SetValue(den,RandomBetween(1,9)) SetValue(ext,RandomBetween(1,3)) SetValue(int,RandomBetween(7,9)) SetValue(mid,RandomBetween(4,6)) SetValue(U,(-2,0,0)) SetValue(V,(-2,0,0)) SetValue(W,(-2,0,0)) SetValue(u,false) SetValue(v,false) SetValue(w,false) SetValue(t_1,true)
  1. Write the script of the button (NEXT) is as follows:
SetValue(t_1,true) SetValue(U,(-2,0,0)) SetValue(V,(-2,0,0)) SetValue(W,(-2,0,0)) SetValue(u,false) SetValue(v,false) SetValue(w,false) SetValue(B,(-2,0,0))
  1. For NEXT button, set the condition to show as shottot≠3.
  2. For Vector vector, set the condition to show as t_1==1.
  3. For Point B, set the condition to show as t_1==1.

Step 6

  1. Calculation Part
  • Create four texts and create checkboxes for all. (text5,text6,text7,text17)
  • Add script THROW and RESET button is as follow:
for THROW: If(shottot==1,If(J==E∨J==I,SetValue(e_1,true))) If(shottot==1,If(J==H∨J==F,SetValue(m_1,true))) If(shottot==1,If(J==G,SetValue(i_1,true))) If(shottot==1,If(J≠H∧J≠F∧J≠G∧J≠E∧J≠I,SetValue(z_1,true))) for RESET: SetValue(e_1,false) SetValue(m_1,false) SetValue(i_1,false) SetValue(z_1,false)
  • Repeat two times this calculation part, create eight texts and create checkboxes for all. (text9,text10,text11,text18/ text12,text13,text14,text19,)
  • Add script THROW and RESET button is as follow:
for THROW If(shottot==2,If(J==E∨J==I,SetValue(e_2,true))) If(shottot==2,If(J==H∨J==F,SetValue(m_2,true))) If(shottot==2,If(J==G,SetValue(i_2,true))) If(shottot==2,If(J≠H∧J≠F∧J≠G∧J≠E∧J≠I,SetValue(z_2,true))) If(shottot==3,If(J==E∨J==I,SetValue(e_3,true))) If(shottot==3,If(J==H∨J==F,SetValue(m_3,true))) If(shottot==3,If(J==G,SetValue(i_3,true)) If(shottot==3,If(J≠H∧J≠F∧J≠G∧J≠E∧J≠I,SetValue(z_3,true))) for RESET SetValue(e_2,false) SetValue(m_2,false) SetValue(i_2,false) SetValue(z_2,false) SetValue(e_3,false) SetValue(m_3,false) SetValue(i_3,false) SetValue(z_3,false)
  1. Create slider “ran” from 12 to 21 with increment 1.(It is maximum range of the question’s nominator.)
  2. Create slider “ran2” from 9 to 18 with increment 1.(It is minimum range of the question’s nominator.)
  3. Add script RESET button is as follow:
SetValue(ran,RandomBetween(9,21)) SetValue(ran2,ran-3)
  1. Create two sliders to input box. They are range from 9 to 12 and from 1 to 9 respectively.
  2. Create two input boxes which are for user calculation result.
  3. Create a new button CHECK.
  4. Create two texts for the feedback of the result.
  5. Script this CHECK button is as follows:
If(payda==den∧(ran2≤üst≤ran),SetValue(score,"Good Job"),SetValue(score,"Try Again")) If(üst==Sum(Dot(ext,shot1),Dot(mid,shot2),dot(int,shot3))∧payda==den,SetValue(cal,"Your calculation is correct!"),SetValue(cal,"check your calculation"))