披萨店收入统计图表练习
几何画板及绘图内容加载中,请稍等……
① 本范例演示如何根据披萨店每日收入数据生成动态统计图表,并让学生通过输入答案进行自动验证。② 涉及核心数学概念为统计与概率中的数据收集、整理、图表解读(柱状图、折线图)以及基本的计数与随机抽样。③ 作图要点:使用 Shuffle 与 Sequence 生成随机收入序列,通过 Textfield 创建交互式输入框,利用 Polygon、PolyLine、Point、Segment 绘制柱状条与折线,配合 Append、Remove、Element、Intersect、Defined、RotateText 实现图表元素的动态更新,validate、showanswer、showsolution、btnValidate、btnTryAgain、btnNew 等按钮对象控制答题流程与反馈。④ 适用于小学 5‑6 年级(或初中入门)的统计图表教学、课堂练习与自主学习。
GeoGebra 命令及参数
Shuffle(Sequence[Random[2000, 2500], i, 1, 100]) → randomNosForSo, {2316, 2316, 2372, 2497, 2147, 2332, 2319, 2180, 2329, 2303, 2465, 2247, 2131, 2118, 2278, 2312, 2412, 2253, 2131, 2389, 2493, 2496, 2276, 2369, 2413, 2037, 2147, 2466, 2432, 2372, 2259, 2391, 2057, 2297, 2490, 2332, 2325, 2260, 2271, 2163, 2407, 2041, 2133, 2016, 2353, 2148, 2493, 2382, 2029, 2184, 2435, 2122, 2273, 2128, 2050, 2262, 2076, 2243, 2420, 2201, 2437, 2309, 2270, 2388, 2354, 2346, 2379, 2401, 2326, 2149, 2328, 2385, 2347, 2106, 2475, 2407, 2165, 2233, 2305, 2404, 2055, 2097, 2239, 2164, 2469, 2148, 2445, 2263, 2279, 2446, 2439, 2139, 2057, 2486, 2126, 2469, 2083, 2023, 2172, 2296}Shuffle(Sequence[Random[1500, 2500], i, 1, 100]) → randomNosForSa, {2337, 2147, 2237, 1635, 2498, 1853, 2271, 1995, 2012, 1804, 2188, 1656, 1685, 2009, 1728, 1660, 1556, 1913, 2116, 1607, 1687, 1508, 1832, 2357, 2450, 2411, 2119, 2429, 1991, 1698, 1936, 2058, 1535, 1787, 2367, 2270, 1701, 2156, 2281, 2182, 2291, 2266, 2263, 1710, 1766, 1874, 1935, 2095, 1927, 1667, 2185, 1719, 1946, 2368, 2145, 1748, 2117, 1570, 1772, 1555, 1796, 1823, 1868, 1626, 2252, 2149, 2184, 1985, 2066, 1736, 2282, 1740, 1784, 2227, 1715, 1703, 2233, 2439, 1694, 2068, 1868, 1975, 1845, 1878, 1518, 1677, 2444, 2301, 1733, 2004, 1888, 2390, 2484, 2316, 2465, 2325, 2457, 2049, 2224, 1654}Shuffle(Sequence[Random[2000, 2500], i, 1, 100]) → randomNosForFr, {2163, 2340, 2439, 2482, 2004, 2177, 2248, 2021, 2265, 2113, 2110, 2234, 2458, 2213, 2056, 2317, 2038, 2050, 2378, 2314, 2149, 2315, 2080, 2488, 2362, 2004, 2285, 2078, 2402, 2263, 2400, 2322, 2187, 2435, 2185, 2269, 2175, 2045, 2125, 2370, 2427, 2179, 2128, 2052, 2090, 2279, 2254, 2408, 2335, 2361, 2214, 2477, 2222, 2399, 2401, 2323, 2024, 2183, 2314, 2023, 2426, 2481, 2461, 2039, 2493, 2388, 2035, 2143, 2162, 2401, 2321, 2348, 2025, 2022, 2099, 2308, 2439, 2106, 2102, 2365, 2064, 2090, 2136, 2210, 2051, 2077, 2051, 2378, 2401, 2295, 2228, 2313, 2431, 2156, 2124, 2271, 2118, 2147, 2476, 2135}Shuffle(Sequence[Random[500, 2500], i, 1, 100]) → randomNosForDo, {1189, 571, 817, 1813, 1551, 2159, 1399, 1166, 871, 1313, 1912, 1209, 516, 2209, 2149, 1290, 1692, 995, 562, 1988, 2454, 1561, 2258, 1869, 2275, 2138, 1702, 2468, 1035, 767, 1653, 639, 1870, 2082, 1818, 1812, 1208, 2124, 1070, 2329, 861, 1244, 2282, 1782, 934, 1471, 1222, 1960, 1921, 1745, 1674, 2001, 2136, 2270, 773, 1937, 2271, 1112, 1063, 2333, 1307, 1341, 1566, 837, 1728, 1774, 784, 1953, 1378, 1599, 1861, 2470, 1870, 1342, 2445, 2117, 2498, 621, 1718, 1780, 1530, 1978, 1081, 1343, 2484, 2170, 1834, 1346, 2381, 628, 1822, 1500, 1961, 1090, 2345, 1298, 1823, 2096, 2228, 1511}Shuffle(Sequence[Random[500, 2500], i, 1, 100]) → randomNosForMi, {801, 2090, 1308, 2341, 2032, 2365, 2278, 1824, 961, 1617, 1391, 1763, 2269, 684, 699, 503, 588, 1878, 1805, 2060, 1019, 710, 520, 819, 1623, 1220, 1103, 570, 911, 2328, 1042, 2019, 718, 2085, 1051, 983, 1176, 1430, 932, 1577, 817, 946, 885, 2284, 2104, 826, 1069, 550, 1708, 1292, 2075, 1517, 1500, 1045, 618, 1840, 1072, 1564, 1454, 608, 1528, 1535, 921, 810, 946, 1063, 1779, 2406, 1842, 2488, 1620, 2209, 835, 1527, 1936, 1461, 1455, 746, 692, 1105, 930, 568, 2500, 1133, 874, 1881, 1593, 1385, 1815, 1764, 1073, 600, 2216, 1771, 1454, 1609, 2478, 2340, 778, 2226}Shuffle(Sequence[Random[500, 2500], i, 1, 100]) → randomNosForMo, {2233, 1301, 1921, 2240, 2387, 2313, 1819, 2065, 1249, 1727, 1496, 1449, 1720, 749, 2260, 2121, 630, 870, 1466, 1002, 782, 2013, 1968, 2255, 1464, 1670, 2287, 1168, 2222, 2471, 784, 1063, 1555, 2164, 2094, 1506, 1202, 962, 1073, 978, 719, 2324, 717, 662, 922, 2495, 2141, 1521, 2394, 931, 1423, 1372, 2327, 2140, 2048, 2126, 2104, 1268, 696, 1840, 609, 1210, 1125, 2373, 1764, 1623, 772, 2305, 1489, 1006, 1257, 1201, 2311, 812, 2366, 1444, 2154, 646, 1310, 1462, 863, 974, 1600, 825, 724, 2301, 807, 736, 2499, 1905, 1893, 2027, 2005, 536, 2287, 1820, 2384, 1918, 2239, 2174}Shuffle(Sequence[Random[500, 2500], i, 1, 100]) → randomNosForDi, {1720, 1290, 1642, 560, 524, 2432, 2009, 587, 1079, 2396, 1501, 566, 1654, 857, 518, 655, 2478, 1457, 1736, 1331, 1593, 1329, 1579, 1532, 1389, 801, 988, 1901, 885, 1650, 2411, 2447, 1761, 2418, 1190, 1954, 2201, 1332, 583, 2347, 1647, 1018, 2425, 713, 2495, 1440, 1156, 1007, 1072, 882, 1998, 808, 507, 1800, 867, 1929, 2331, 1196, 2329, 976, 1057, 2365, 852, 847, 760, 1151, 1417, 1900, 814, 889, 2397, 1763, 1894, 2151, 1728, 2495, 1524, 786, 2225, 2101, 1432, 1743, 1242, 584, 1190, 2464, 2235, 775, 506, 1156, 1610, 1685, 1835, 818, 2096, 1563, 2116, 2365, 895, 609}Textfield(aInput) → InputBox1Textfield(bInput) → InputBox2Polygon(PtopLeftCornerFeedback, PtopRightCornerFeedback, PbottomRightCornerFeedback, PbottomLeftCornerFeedback) → rectangleCorrect, ptopleftcornerfeedback, ptoprightcornerfeedback, pbottomrightcornerfeedback, pbottomleftcornerfeedbackAppend(true, Sequence[If[randomNosForMo(i) ≟ randomNosForMo(i - 1), false, true], i, 2, 100]) → stayXAppend(true, Sequence[If[randomNosForDi(i) ≟ randomNosForDi(i - 1), false, true], i, 2, 100]) → stayYRemove(Sequence[If[stayX(i), randomNosForMo(i), 0], i, 1, 100], Sequence[0, i, 1, 100]) → randomNosForXwithoutRepeatRemove(Sequence[If[stayY(i), randomNosForDi(i), 0], i, 1, 100], Sequence[0, i, 1, 100]) → randomNosForYwithoutRepeatElement(randomNosForXwithoutRepeat, Mod[questionCount, Length[randomNosForXwithoutRepeat]] + 1) → numXwithoutRepeatElement(randomNosForYwithoutRepeat, Mod[questionCount, Length[randomNosForYwithoutRepeat]] + 1) → numYwithoutRepeatIntersect(xAxis, yAxis) → APoint(xAxis) → CSegment((x(A) + 1.5, y(A)), C) → hPoint(h) → BTextfield(cInput) → InputBox3Textfield(dInput) → InputBox4Textfield(eInput) → InputBox5Textfield(fInput) → InputBox6Textfield(gInput) → InputBox7Polygon(E, F, G, H) → v1, e, f_1, g_1, h_1Defined(((((cInput * dInput) * eInput) * fInput) * gInput)) → fixedPolygon(PtopLeftCornerFeedback_{1}, PtopRightCornerFeedback_{1}, PbottomRightCornerFeedback_{1}, PbottomLeftCornerFeedback_{1}) → rectangleCorrect_{1}, ptopleftcornerfeedback_{1}, ptoprightcornerfeedback_{1}, pbottomrightcornerfeedback_{1}, pbottomleftcornerfeedback_{1}Polygon(PtopLeftCornerFeedback_{2}, PtopRightCornerFeedback_{2}, PbottomRightCornerFeedback_{2}, PbottomLeftCornerFeedback_{2}) → rectangleCorrect_{2}, ptopleftcornerfeedback_{2}, ptoprightcornerfeedback_{2}, pbottomrightcornerfeedback_{2}, pbottomleftcornerfeedback_{2}Polygon(PtopLeftCornerFeedback_{3}, PtopRightCornerFeedback_{3}, PbottomRightCornerFeedback_{3}, PbottomLeftCornerFeedback_{3}) → rectangleCorrect_{3}, ptopleftcornerfeedback_{3}, ptoprightcornerfeedback_{3}, pbottomrightcornerfeedback_{3}, pbottomleftcornerfeedback_{3}Polygon(PtopLeftCornerFeedback_{4}, PtopRightCornerFeedback_{4}, PbottomRightCornerFeedback_{4}, PbottomLeftCornerFeedback_{4}) → rectangleCorrect_{4}, ptopleftcornerfeedback_{4}, ptoprightcornerfeedback_{4}, pbottomrightcornerfeedback_{4}, pbottomleftcornerfeedback_{4}Polygon(PtopLeftCornerFeedback_{5}, PtopRightCornerFeedback_{5}, PbottomRightCornerFeedback_{5}, PbottomLeftCornerFeedback_{5}) → rectangleCorrect_{5}, ptopleftcornerfeedback_{5}, ptoprightcornerfeedback_{5}, pbottomrightcornerfeedback_{5}, pbottomleftcornerfeedback_{5}Polygon(PtopLeftCornerFeedback_{6}, PtopRightCornerFeedback_{6}, PbottomRightCornerFeedback_{6}, PbottomLeftCornerFeedback_{6}) → rectangleCorrect_{6}, ptopleftcornerfeedback_{6}, ptoprightcornerfeedback_{6}, pbottomrightcornerfeedback_{6}, pbottomleftcornerfeedback_{6}RotateText(Text4, 90°) → Text6Sequence((1.5, i), i, 100, 2500, 100) → l3Sequence((8, i), i, 100, 2500, 100) → l4Sequence(Segment[l3(k), l4(k)], k, 1, 30) → l5Sequence((i, 0), i, 3, 7) → l2Point(l2) → PSegment(P, K) → jPolyLine(K, L, M, N, O) → iSequence((1.5, i), i, 500, 2500, 500) → l1Segment((x(B), y(B)), D) → gPolygon(PtopLeftCornerFeedback_{11}, PtopRightCornerFeedback_{11}, PbottomRightCornerFeedback_{11}, PbottomLeftCornerFeedback_{11}) → rectangleCorrect_{7}, ptopleftcornerfeedback_{7}, ptoprightcornerfeedback_{7}, pbottomrightcornerfeedback_{7}, pbottomleftcornerfeedback_{7}