diff --git a/exercises/m3slt-fb.html b/exercises/m3slt-fb.html new file mode 100644 index 00000000..0496fbe8 --- /dev/null +++ b/exercises/m3slt-fb.html @@ -0,0 +1,119 @@ + + + + + 四角柱的表面積 + + + + +
+
+
+
+ randRange( 5, 10 ) + randRange( 1, D - 1 ) + randRangeUnique( 4, 11, 2 ) + randRange( 5, 10 ) + ( A + C ) * B + ( A + C + 2 * D ) * E + F + G +
+ +
+
+

試算下列四角柱的表面積。

+
+ init( { range : [ [ -10, 10 ], [ -9, -7 + E + B / 2 + 2 ] ], scale : 20 } ); + path( [ [ -5, -7 ], [ -5, -7 + E ], [ -5 + A, -7 + E ], [ -5 + A, -7 ], [ -5, -7 ] ], { fill : "#A6FFA6", opacity : 0.9 } ); + path( [ [ -5, -7 + E ], [ -5 + A / 2 - C / 2, -7 + E + B / 2 ], [ -5 + A / 2 + C / 2, -7 + E + B / 2 ], [ -5 + A, -7 + E ], [ -5 , -7 + E ] ], { fill : "#A6FFA6" } ); + if( A < C ) { + path( [ [ -5, -7 ], [ -5, -7 + E ], [ -5 + A / 2 - C / 2, -7 + E + B / 2 ], [ -5 + A / 2 - C / 2, -7 + B / 2 ], [ -5, -7 ] ], { fill : "#A6FFA6", opacity : 0.75 } ); + path( [ [ -5 + A, -7 ], [ -5 + A, -7 + E ], [ -5 + A / 2 + C / 2, -7 + E + B / 2 ], [ -5 + A / 2 + C / 2, -7 + B / 2 ], [ -5 + A, -7 ] ], { fill : "#A6FFA6", opacity : 0.75 } ); + } + line( [ -5 + A / 2, -7 + E ], [ -5 + A / 2, -7 + E + B / 2 ], { "stroke-dasharray" : "-", stroke : "orange" } ); + label( [ -5 + A / 2 + 0.6, -7 + E + B / 4 ], B, { color : "orange" } ); + line( [ -5, -7 + E ], [ -5 + A, -7 + E ], { stroke : "blue" } ); + label( [ -5 + A / 2, -7 + E - 0.8 ], A, { color : "blue" } ); + line( [ -5 + A, -7 + E ], [ -5 + A, -7 ], { stroke : "green" } ); + label( [ -5 + A + 0.5, -7 + E / 2 ], E, { color : "green" } ); + line( [ -5 + A / 2 - C / 2, -7 + E + B / 2 ], [ -5 + A / 2 + C / 2, -7 + E + B / 2 ], { stroke : "purple" } ); + label( [ -5 + A / 2, -7 + E + B / 2 + 0.6 ], C, { color : "purple" } ); + line( [ -5, -7 + E ], [ -5 + A / 2 - C / 2, -7 + E + B / 2 ], { stroke : "red" } ); + label( [ -5 + A / 4 - C / 4, -7 + E + B / 4 ], D, A > C ? "above left" : "below left", { color : "red" } ); + line( [ -5 + A / 2 + C / 2, -7 + E + B / 2 ], [ -5 + A, -7 + E ], { stroke : "red" } ); + label( [ -5 + 3 * A / 4 + C / 4, -7 + E + B / 4 ], D, A > C ? "above right" : "below right", { color : "red" } ); +
+ +
+
+ +
+ ANSWER平方公分 +
+ +
+
+

上下底的表面積為

+

\qquad (A+C) \times B \div 2 \times 2 = F

+

側面表面積為

+

\qquad (A+D+C+D) \times E = G

+
+

四角柱的表面積 = F+G = \color{#FF00AF}{ANSWER} 平方公分

+
+
+ +
+
+ randFromArray( [ [ 30, 25, 27 ], [ 20, 14, 13 ], [ 12, 6, 14 ], [ 18, 14, 15 ], [ 24, 12, 17 ] ] ) + randFromArray( [ 15, 10, 12, 14, 2 ] ) + A * B * 2 + ( A + C ) * 2 * D + E + F +
+ +
+
+

試算下列四角柱的表面積。

+
+ init( { range : [ [ -10, -8 + C / 4 + D / 2 + 0.86 * A / 2 + 2 ], [ -8, -6 + 0.86 * C / 2 + A / 4 + 2 ] ], scale : 18 } ); + path( [ [ -8 + D / 2, -6 ], [ -8 + D / 2 + 0.86 * A / 2, -6 + A / 4 ], [ -8 + C / 4 + D / 2 + 0.86 * A / 2, -6 + 0.86 * C / 2 + A / 4 ], [ -8 + C / 4 + D / 2, -6 + 0.86 * C / 2 ] ], { fill : "#A6FFA6", opacity : 0.8 } ); + path( [ [ -8, -6 ], [ -8 + D / 2, -6 ], [ -8 + C / 4 + D / 2, -6 + 0.86 * C / 2 ], [ -8 + C / 4, -6 + 0.86 * C / 2 ], [ -8, -6 ] ], { fill : "#A6FFA6" } ); + path( [ [ -8 + C / 4 + D / 2, -6 + 0.86 * C / 2 ], [ -8 + C / 4 + D / 2 + 0.86 * A / 2, -6 + 0.86 * C / 2 + A / 4 ], [ -8 + C / 4 + 0.86 * A / 2, -6 + 0.86 * C / 2 + A / 4 ], [ -8 + C / 4, -6 + 0.86 * C / 2 ] ], { fill : "#A6FFA6", opacity : 0.7 } ); + line( [ -8, -6 ], [ -8 + D / 2, -6 ], { stroke : "blue" } ); + label( [ -8 + D / 4, -6.7 ], D, { color : "blue" } ); + line( [ -8 + D / 2 + 0.86 * A / 2, -6 + A / 4 ], [ -8 + C / 4 + D / 2 + 0.86 * A / 2, -6 + 0.86 * C / 2 + A / 4 ], { stroke : "orange" } ); + label( [ -8 + D / 2 + C / 8 + 0.86 * A / 2 + 0.6, -6 + A / 4 + 0.86 * C / 4 - 0.3 ], C, { color : "orange" } ); + line( [ -8 + D / 2, -6 ], [ -8 + D / 2 + 0.86 * A / 2, -6 + A / 4 ], { stroke : "green" } ); + label( [ -8 + D / 2 + 0.86 * A / 4 + 0.3, -6 + A / 8 - 0.5 ], A, { color : "green" } ); + line( [ -8 + C / 4 + D / 2 + 0.86 * A / 2, -6 + 0.86 * C / 2 + A / 4 ], [ -8 + C /4 + D / 2 + 0.86 * A / 2, -6 + A / 4 + 0.86 * C / 2 - 0.86 * C / 4 ], { "stroke-dasharray" : "-", stroke : "purple" } ); + label( [ -8 + C / 4 + D / 2 + 0.86 * A / 2, -6 + A / 4 + 0.86 * C / 2 - 0.43 * C / 4 ], B, "right", { color : "purple" } ); + line( [ -8 + D / 2 + 0.86 * A / 2, -6 + A / 4 ], [ -8 + C / 4 + D / 2 + 0.86 * A / 2, -6 + A / 4 + 0.86 * C / 2 - 0.86 * C / 4 ], { "stroke-dasharray" : "-" } ); +
+
+
+ +
+ ANSWER平方公分 +
+ +
+
+

上下底的表面積為

+

\qquad A\timesB\times 2=E

+

側面表面積為

+

\qquad (A+C+A+C)\timesD=F

+
+

四角柱的表面積 = E+F = \color{#FF00AF}{ANSWER} 平方公分

+
+
+ +
+
+ + + \ No newline at end of file