Compound Interest Calculation and Demonstration
2016-02-01 21:39
This applet demonstrates the calculation and visual representation of compound interest. Users can input key financial parameters including the principal amount, annual interest rate, and number of compounding periods. Using GeoGebra's sequence and list commands, the tool dynamically renders how the investment grows over time, updating in real time as any parameter is adjusted.
The visualization highlights the compounding effect, showing how interest earned in each period is added to the principal so that subsequent interest calculations are made on an increasingly larger balance. This creates the characteristic exponential growth curve that distinguishes compound interest from simple interest, which grows linearly. A side-by-side comparison allows users to see both growth patterns simultaneously, making the difference between compound and simple interest immediately apparent.
The applet supports switching between English and Chinese interfaces, making it accessible to a broader range of learners. This bilingual capability ensures that students and educators from different linguistic backgrounds can effectively use the tool to grasp the underlying mathematical concepts.
Key learning outcomes include understanding the compound interest formula, recognizing the exponential nature of compound growth, appreciating the dramatic long-term impact of compounding, and developing intuition for how changes in principal, rate, and time affect final outcomes. The interactive sliders and dynamic graphs encourage exploration, allowing users to test different scenarios and observe results instantly without manual recalculation.
This hands-on approach transforms abstract financial mathematics into an engaging visual experience. Students benefit by building a deep conceptual understanding rather than merely memorizing formulas. The applet is suitable for high school and early college courses in algebra, precalculus, and financial mathematics, serving as both a teaching aid and an independent exploration tool.
In collections
S3 Percentages
Loading the math board and drawing, please wait…
<?xml version="1.0" encoding="utf-8"?>
<geogebra format="5.0" version="5.0.318.0" id="5dc84d87-6975-47e5-a68d-17b068af9330" xsi:noNamespaceSchemaLocation="http://www.geogebra.org/ggb.xsd" xmlns="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
<gui>
<window width="960" height="660" />
<perspectives>
<perspective id="tmp">
<panes>
<pane location="" divider="0.7136363636363636" orientation="0" />
</panes>
<views>
<view id="8" toolbar="1001 | 1002 | 1003 || 1005 | 1004 || 1006 | 1007 | 1010 || 1008 1009 || 66 68 || 6" visible="false" inframe="false" stylebar="false" location="1,3" size="300" window="100,100,600,400" />
<view id="1" visible="true" inframe="false" stylebar="false" location="0" size="471" window="100,100,600,400" />
<view id="4" toolbar="0 || 2020 , 2021 , 2022 , 66 || 2001 , 2003 , 2002 , 2004 , 2005 || 2040 , 2041 , 2042 , 2044 , 2043" visible="false" inframe="false" stylebar="true" location="1" size="291" window="100,100,600,400" />
<view id="2" visible="false" inframe="false" stylebar="true" location="1" size="150" window="202,137,868,524" />
<view id="16" visible="true" inframe="false" stylebar="false" location="2" size="179" window="50,50,500,500" />
<view id="32" visible="false" inframe="false" stylebar="true" location="1" size="150" window="50,50,500,500" />
<view id="64" toolbar="0" visible="false" inframe="true" stylebar="true" location="1" size="150" window="50,50,500,500" />
<view id="128" visible="false" inframe="true" stylebar="false" location="1" size="480" window="50,50,500,500" />
<view id="4097" visible="false" inframe="true" stylebar="true" location="1" size="383" window="228,134,823,550" />
<view id="70" toolbar="0 || 2020 || 2021 || 2022" visible="false" inframe="true" stylebar="true" location="1" size="150" window="50,50,500,500" />
<view id="43" visible="false" inframe="false" stylebar="false" location="1" size="450" window="50,50,500,500" />
<view id="512" toolbar="0 | 1 501 5 19 , 67 | 2 15 45 18 , 7 37 | 514 3 9 , 13 44 , 47 | 16 | 551 550 11 , 22 , 23 , 55 56 57 , 12 | 69 | 510 511 , 512 513 | 533 531 , 534 532 , 522 523 , 537 536 , 535 | 521 520 | 36 , 38 49 560 | 571 30 29 570 31 33 | 17 | 540 40 41 42 , 27 28 35 , 6 , 502" visible="false" inframe="false" stylebar="false" location="1" size="300" window="50,50,500,500" />
</views>
<toolbar show="false" items="0 39 | 1 501 67 , 5 19 , 72 | 2 15 45 , 18 65 , 7 37 | 4 3 8 9 , 13 44 , 58 , 47 | 16 51 64 , 70 | 10 34 53 11 , 24 20 22 , 21 23 | 55 56 57 , 12 | 36 46 , 38 49 50 , 71 | 30 29 54 32 31 33 | 17 26 62 73 , 14 68 | 25 52 60 61 | 40 41 42 , 27 28 35 , 6" position="7" help="false" />
<input show="false" cmd="true" top="algebra" />
<dockBar show="false" east="false" />
</perspective>
</perspectives>
<labelingStyle val="2"/>
<font size="20"/>
</gui>
<euclidianView>
<viewNumber viewNo="1"/>
<size width="958" height="471"/>
<coordSystem xZero="26.078488416179688" yZero="146.81700582350527" scale="36.9934592986517" yscale="36.993459298651764"/>
<evSettings axes="false" grid="false" gridIsBold="false" pointCapturing="2" rightAngleStyle="1" checkboxSize="26" gridType="0"/>
<bgColor r="255" g="255" b="255"/>
<axesColor r="0" g="0" b="0"/>
<gridColor r="192" g="192" b="192"/>
<lineStyle axes="1" grid="0"/>
<axis id="0" show="false" label="" unitLabel="" tickStyle="1" showNumbers="true"/>
<axis id="1" show="false" label="" unitLabel="" tickStyle="1" showNumbers="true"/>
<grid distX="0.2" distY="0.2" distTheta="0.5235987755982988"/>
</euclidianView>
<euclidianView>
<viewNumber viewNo="2"/>
<size width="958" height="179"/>
<coordSystem xZero="168.99999999999997" yZero="61.00000000000005" scale="49.99999999999995" yscale="50.00000000000002"/>
<evSettings axes="false" grid="false" gridIsBold="false" pointCapturing="3" rightAngleStyle="1" checkboxSize="26" gridType="0"/>
<bgColor r="204" g="255" b="204"/>
<axesColor r="0" g="0" b="0"/>
<gridColor r="192" g="192" b="192"/>
<lineStyle axes="1" grid="0"/>
<axis id="0" show="false" label="" unitLabel="" tickStyle="1" showNumbers="true"/>
<axis id="1" show="false" label="" unitLabel="" tickStyle="1" showNumbers="true"/>
</euclidianView>
<kernel>
<continuous val="false"/>
<usePathAndRegionParameters val="true"/>
<decimals val="1"/>
<angleUnit val="degree"/>
<algebraStyle val="0" spreadsheet="0"/>
<coordStyle val="0"/>
</kernel>
<scripting blocked="false" disabled="false"/>
<construction title="" author="" date="">
<element type="numeric" label="n">
<value val="1"/>
<show object="true" label="false"/>
<objColor r="255" g="0" b="0" alpha="0.1"/>
<layer val="2"/>
<labelOffset x="5" y="1"/>
<labelMode val="2"/>
<slider min="1" max="(k * t)" absoluteScreenLocation="true" width="200" x="550" y="89" fixed="false" horizontal="true" showAlgebra="true"/>
<lineStyle thickness="10" type="0" typeHidden="1"/>
<animation step="1" speed="1" type="0" playing="false"/>
<caption val="第%v期"/>
</element>
<element type="numeric" label="lang">
<value val="2"/>
<symbolic val="true" />
<show object="false" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.1"/>
<layer val="3"/>
<labelMode val="2"/>
<animation step="1" speed="1" type="0" playing="false"/>
</element>
<command name="If">
<input a0="lang ≟ 1" a1="{"每年一結(每年派息1次)", "每半年一結(每年派息2次)", "每季一結(每年派息4次)", "每月一結(每年派息12次)"}" a2="{"yearly", "half-yearly", "quarterly", "monthly"}"/>
<output a0="listChoice"/>
</command>
<element type="list" label="listChoice">
<show object="true" label="true" ev="8"/>
<objColor r="255" g="0" b="0" alpha="0"/>
<bgColor r="255" g="255" b="255" alpha="255"/>
<layer val="2"/>
<labelOffset x="30" y="70"/>
<labelMode val="3"/>
<isShape val="false"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<comboBox val="true"/>
<pointSize val="5"/>
<pointStyle val="-1"/>
<font serif="false" sizeM="1.4" size="8" style="0"/>
<caption val="Settlement:"/>
</element>
<command name="If">
<input a0="SelectedIndex[listChoice] ≟ 1" a1="1" a2="If[SelectedIndex[listChoice] ≟ 2, 2, If[SelectedIndex[listChoice] ≟ 3, 4, 12]]"/>
<output a0="k"/>
</command>
<element type="numeric" label="k">
<value val="1"/>
<objColor r="0" g="0" b="0" alpha="0.1"/>
<selectionAllowed val="false"/>
</element>
<command name="If">
<input a0="k ≟ 1" a1=""Year"" a2="If[k ≟ 2, "Half-year", If[k ≟ 4, "Quarter", "Month"]]"/>
<output a0="textUnitENG"/>
</command>
<element type="text" label="textUnitENG">
<symbolic val="true" />
<show object="false" label="false"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="3"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<startPoint x="0" y="0" z="1"/>
</element>
<command name="If">
<input a0="k ≟ 1" a1=""年"" a2="If[k ≟ 2, "個半年", If[k ≟ 4, "季", "月"]]"/>
<output a0="textUnit"/>
</command>
<element type="text" label="textUnit">
<show object="false" label="true" ev="11"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
</element>
<element type="numeric" label="t">
<value val="2"/>
<show object="true" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.1"/>
<layer val="0"/>
<labelMode val="3"/>
<slider min="1" max="5" absoluteScreenLocation="true" width="200" x="579" y="39" fixed="false" horizontal="true" showAlgebra="true"/>
<lineStyle thickness="10" type="0" typeHidden="1"/>
<animation step="1" speed="1" type="0" playing="false"/>
<caption val="Time = %v years"/>
</element>
<element type="numeric" label="Pr">
<value val="80000"/>
<show object="false" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.1"/>
<layer val="0"/>
<labelMode val="2"/>
<slider min="1000" max="1000000" absoluteScreenLocation="true" width="200" fixed="false" horizontal="true" showAlgebra="true"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<animation step="1000" speed="1" type="0" playing="false"/>
</element>
<element type="numeric" label="R">
<value val="6"/>
<show object="true" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.1"/>
<layer val="0"/>
<labelMode val="3"/>
<slider min="0.5" max="10" absoluteScreenLocation="true" width="200" x="347" y="39" fixed="false" horizontal="true" showAlgebra="true"/>
<lineStyle thickness="10" type="0" typeHidden="1"/>
<animation step="0.1" speed="1" type="0" playing="false"/>
<caption val="Rate = %v%"/>
</element>
<expression label="r" exp="R / k" />
<element type="numeric" label="r">
<value val="6"/>
<objColor r="0" g="0" b="0" alpha="0.1"/>
<selectionAllowed val="false"/>
</element>
<command name="Sequence">
<input a0="(Pr * (1 + r / 100)^(i))" a1="i" a2="0" a3="n - 1"/>
<output a0="list0"/>
</command>
<element type="list" label="list0">
<objColor r="160" g="160" b="160" alpha="0.1"/>
<bgColor r="255" g="255" b="255" alpha="255"/>
<isShape val="false"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<pointSize val="5"/>
<pointStyle val="-1"/>
</element>
<command name="Zip">
<input a0="Text[k]" a1="k" a2="list0"/>
<output a0="list1"/>
</command>
<element type="list" label="list1">
<show object="false" label="false" ev="4"/>
<objColor r="0" g="100" b="0" alpha="0"/>
<bgColor r="255" g="255" b="255" alpha="255"/>
<layer val="0"/>
<labelMode val="0"/>
<isShape val="false"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<pointSize val="5"/>
<pointStyle val="-1"/>
</element>
<command name="Zip">
<input a0=""\violet{" + (k) + "×" + (Text[r]) + "%}"" a1="k" a2="list1"/>
<output a0="list2"/>
</command>
<element type="list" label="list2">
<show object="false" label="false" ev="4"/>
<objColor r="0" g="100" b="0" alpha="0"/>
<bgColor r="255" g="255" b="255" alpha="255"/>
<layer val="0"/>
<labelMode val="0"/>
<isShape val="false"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<pointSize val="5"/>
<pointStyle val="-1"/>
</element>
<command name="Zip">
<input a0=""\violet{" + (Text[(k * r / 100)]) + "}"" a1="k" a2="list0"/>
<output a0="list3"/>
</command>
<element type="list" label="list3">
<show object="false" label="false" ev="4"/>
<objColor r="0" g="100" b="0" alpha="0"/>
<bgColor r="255" g="255" b="255" alpha="255"/>
<layer val="0"/>
<labelMode val="0"/>
<isShape val="false"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<pointSize val="5"/>
<pointStyle val="-1"/>
</element>
<command name="Zip">
<input a0=""\blue{" + (Text[(k * (1 + r / 100))]) + "}"" a1="k" a2="list0"/>
<output a0="list4"/>
</command>
<element type="list" label="list4">
<show object="false" label="false" ev="4"/>
<objColor r="0" g="100" b="0" alpha="0"/>
<bgColor r="255" g="255" b="255" alpha="255"/>
<layer val="0"/>
<labelMode val="0"/>
<isShape val="false"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<pointSize val="5"/>
<pointStyle val="-1"/>
</element>
<command name="Zip">
<input a0=""\blue{" + (k) + "×(1+" + (Text[r]) + "%)}"" a1="k" a2="list1"/>
<output a0="list5"/>
</command>
<element type="list" label="list5">
<show object="false" label="false" ev="4"/>
<objColor r="0" g="100" b="0" alpha="0"/>
<bgColor r="255" g="255" b="255" alpha="255"/>
<layer val="0"/>
<labelMode val="0"/>
<isShape val="false"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<pointSize val="5"/>
<pointStyle val="-1"/>
</element>
<command name="Append">
<input a0=""\scalebox{0.8}{" + (If[lang ≟ 1, "本金", "\text{Principal}"]) + "}"" a1="list1"/>
<output a0="list1'"/>
</command>
<element type="list" label="list1'">
<show object="false" label="false" ev="4"/>
<objColor r="0" g="100" b="0" alpha="0"/>
<bgColor r="255" g="255" b="255" alpha="255"/>
<layer val="0"/>
<labelMode val="0"/>
<isShape val="false"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<pointSize val="5"/>
<pointStyle val="-1"/>
</element>
<command name="Append">
<input a0=""\scalebox{0.8}{" + (If[lang ≟ 1, "利息計算方法", "\text{Computation of Interest}"]) + "}"" a1="list2"/>
<output a0="list2'"/>
</command>
<element type="list" label="list2'">
<show object="false" label="false" ev="4"/>
<objColor r="0" g="100" b="0" alpha="0"/>
<bgColor r="255" g="255" b="255" alpha="255"/>
<layer val="0"/>
<labelMode val="0"/>
<isShape val="false"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<pointSize val="5"/>
<pointStyle val="-1"/>
</element>
<command name="Append">
<input a0=""\scalebox{0.8}{" + (If[lang ≟ 1, "利息", "\text{Interest}"]) + "}"" a1="list3"/>
<output a0="list3'"/>
</command>
<element type="list" label="list3'">
<show object="false" label="false" ev="4"/>
<objColor r="0" g="100" b="0" alpha="0"/>
<bgColor r="255" g="255" b="255" alpha="255"/>
<layer val="0"/>
<labelMode val="0"/>
<isShape val="false"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<pointSize val="5"/>
<pointStyle val="-1"/>
</element>
<command name="Append">
<input a0=""\scalebox{0.8}{" + (If[lang ≟ 1, "本利和(本金加利息)", "\text{Amount}"]) + "}"" a1="list4"/>
<output a0="list4'"/>
</command>
<element type="list" label="list4'">
<show object="false" label="false" ev="4"/>
<objColor r="0" g="100" b="0" alpha="0"/>
<bgColor r="255" g="255" b="255" alpha="255"/>
<layer val="0"/>
<labelMode val="0"/>
<isShape val="false"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<pointSize val="5"/>
<pointStyle val="-1"/>
</element>
<command name="Append">
<input a0=""\vspace{20}---"" a1="Sequence[If[lang ≟ 1, "\red{第" + (Text[i]) + textUnit + "}", "\red{\text{" + textUnitENG + " " + (Text[i]) + "}}"], i, 1, n]"/>
<output a0="listN"/>
</command>
<element type="list" label="listN">
<show object="false" label="false" ev="4"/>
<objColor r="0" g="100" b="0" alpha="0"/>
<bgColor r="255" g="255" b="255" alpha="255"/>
<layer val="0"/>
<labelMode val="0"/>
<isShape val="false"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<pointSize val="5"/>
<pointStyle val="-1"/>
</element>
<command name="Append">
<input a0=""\scalebox{0.8}{" + (If[lang ≟ 1, "本利和另一計算方法", "\text{Amount (alternatively)}"]) + "}"" a1="list5"/>
<output a0="list5'"/>
</command>
<element type="list" label="list5'">
<show object="false" label="false" ev="4"/>
<objColor r="0" g="100" b="0" alpha="0"/>
<bgColor r="255" g="255" b="255" alpha="255"/>
<layer val="0"/>
<labelMode val="0"/>
<isShape val="false"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<pointSize val="5"/>
<pointStyle val="-1"/>
</element>
<expression label="textTable" exp=""" + (LaTeX[TableText[{listN, list1', list2', list3', list4', list5'}, "vr|_"]]) + """ />
<element type="text" label="textTable">
<show object="true" label="true" ev="8"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<bgColor r="255" g="250" b="205" alpha="255"/>
<layer val="1"/>
<labelMode val="0"/>
<fixed val="true"/>
<selectionAllowed val="false"/>
<isLaTeX val="true"/>
<font serif="true" sizeM="1" size="0" style="0"/>
<startPoint exp="A"/>
</element>
<command name="Textfield">
<input a0="Pr"/>
<output a0="InputBox1"/>
</command>
<element type="textfield" label="InputBox1">
<show object="true" label="true"/>
<objColor r="0" g="0" b="0" alpha="1"/>
<layer val="0"/>
<labelOffset x="30" y="14"/>
<labelMode val="3"/>
<animation step="1" speed="1" type="0" playing="false"/>
<isShape val="false"/>
<auxiliary val="true"/>
<font serif="false" sizeM="1.4" size="8" style="0"/>
<linkedGeo exp="Pr"/>
<length val="6"/>
<caption val="Principal=$"/>
</element>
<expression label="textP1" exp=""" + (LaTeX[Pr]) + " ×( 1+" + (LaTeX[R]) + " % ) ^{ " + (LaTeX[t]) + " }"" />
<element type="text" label="textP1">
<show object="false" label="true" ev="8"/>
<objColor r="128" g="128" b="128" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<isLaTeX val="true"/>
<font serif="true" sizeM="1" size="0" style="0"/>
<absoluteScreenLocation x="527" y="177"/>
</element>
<expression label="textP2" exp=""" + (LaTeX[Pr]) + "×\bigg( 1+\red{\frac{\black{" + (LaTeX[R]) + "%}}{" + (LaTeX[k]) + "} }\bigg) ^{" + (LaTeX[t]) + "\red{×" + (LaTeX[k]) + "}}"" />
<element type="text" label="textP2">
<show object="false" label="true" ev="8"/>
<objColor r="128" g="128" b="128" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<isLaTeX val="true"/>
<font serif="true" sizeM="1" size="0" style="0"/>
<absoluteScreenLocation x="524" y="99"/>
</element>
<expression label="final" exp="(Pr * (1 + r / 100)^((t * k)))" />
<element type="numeric" label="final">
<value val="89888.00000000001"/>
<objColor r="255" g="127" b="0" alpha="0.1"/>
<selectionAllowed val="false"/>
</element>
<expression label="textP" exp=""=" + (LaTeX[If[k ≟ 1, textP1, textP2]]) + "\\ =\$" + (LaTeX[final]) + """ />
<element type="text" label="textP">
<show object="true" label="true" ev="11"/>
<condition showObject="a"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<selectionAllowed val="false"/>
<isLaTeX val="true"/>
<font serif="true" sizeM="1.4" size="8" style="0"/>
<absoluteScreenLocation x="49" y="40"/>
</element>
<expression label="textI" exp=""=" + (LaTeX[final]) + "-" + (LaTeX[Pr]) + "\\ =\$" + (LaTeX[final - Pr]) + """ />
<element type="text" label="textI">
<show object="true" label="true" ev="11"/>
<condition showObject="b"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<isLaTeX val="true"/>
<font serif="true" sizeM="1.4" size="8" style="0"/>
<absoluteScreenLocation x="549" y="46"/>
</element>
<element type="boolean" label="a">
<value val="false"/>
<show object="true" label="true" ev="3"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelOffset x="14" y="6"/>
<labelMode val="3"/>
<checkbox fixed="true"/>
<caption val="Total amount"/>
</element>
<element type="boolean" label="b">
<value val="false"/>
<show object="true" label="true" ev="3"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelOffset x="514" y="6"/>
<labelMode val="3"/>
<checkbox fixed="true"/>
<caption val="Interest"/>
</element>
<element type="button" label="button1">
<show object="true" label="true"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="2"/>
<labelOffset x="840" y="58"/>
<labelMode val="3"/>
<animation step="1" speed="1" type="0" playing="false"/>
<isShape val="false"/>
<auxiliary val="true"/>
<ggbscript val="SetValue[A,A-(0,1)]"/>
<font serif="false" sizeM="1.4" size="8" style="0"/>
<caption val="Scroll up"/>
</element>
<element type="button" label="button2">
<show object="true" label="true"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="2"/>
<labelOffset x="840" y="21"/>
<labelMode val="3"/>
<animation step="1" speed="1" type="0" playing="false"/>
<isShape val="false"/>
<auxiliary val="true"/>
<ggbscript val="SetValue[A,A+(0,1)]"/>
<font serif="false" sizeM="1.4" size="8" style="0"/>
<caption val="Scroll down"/>
</element>
<element type="button" label="buttonReset">
<show object="true" label="true"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="2"/>
<labelOffset x="840" y="95"/>
<labelMode val="3"/>
<animation step="1" speed="1" type="0" playing="false"/>
<isShape val="false"/>
<auxiliary val="true"/>
<ggbscript val="SetValue[A,(0,0)]"/>
<font serif="false" sizeM="1.4" size="8" style="0"/>
<caption val="Reset"/>
</element>
<element type="button" label="button0">
<show object="true" label="true" ev="3"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="3"/>
<labelOffset x="869" y="11"/>
<labelMode val="3"/>
<animation step="1" speed="1" type="0" playing="false"/>
<isShape val="false"/>
<auxiliary val="true"/>
<ggbscript val="SetValue[lang,If[lang==1,2,1]] RunClickScript[buttonLang] "/>
<font serif="false" sizeM="1.4" size="8" style="0"/>
<caption val="中文"/>
</element>
<element type="button" label="buttonLang">
<show object="false" label="true"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="3"/>
<labelOffset x="878" y="401"/>
<labelMode val="0"/>
<animation step="1" speed="1" type="0" playing="false"/>
<isShape val="false"/>
<auxiliary val="true"/>
<ggbscript val="SetCaption[button0,If[lang==1,"ENG","中文"]] SetCaption[InputBox1,If[lang==1,"本金=$","Principal=$"]] SetCaption[R,If[lang==1,"年利率=%v%","Rate = %v%"]] SetCaption[t,If[lang==1,"存款%v年","Time = %v years"]] SetCaption[listChoice,If[lang==1,"結算:","Settlement: "]] SetCaption[button1,If[lang==1,"向上滑動","Scroll up"]] SetCaption[button2,If[lang==1,"向下滑動","Scroll down"]] SetCaption[buttonReset,If[lang==1,"重設","Reset"]] SetCaption[b,If[lang==1,"利息","Interest"]] SetCaption[a,If[lang==1,"本利和","Total amount"]]"/>
<font serif="false" sizeM="2" size="20" style="0"/>
</element>
<expression label="text1" exp=""" + (If[lang ≟ 1, "第" + n + textUnit, textUnitENG + " " + n]) + """ />
<element type="text" label="text1">
<show object="true" label="false" ev="8"/>
<objColor r="255" g="0" b="0" alpha="0"/>
<layer val="2"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<font serif="false" sizeM="1.4" size="8" style="0"/>
<absoluteScreenLocation x="583" y="126"/>
</element>
<expression label ="A" exp="(0, 0)" type="point"/>
<element type="point" label="A">
<show object="false" label="false" ev="4"/>
<objColor r="0" g="0" b="255" alpha="0"/>
<layer val="3"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<isShape val="false"/>
<coords x="0" y="0" z="1"/>
<pointSize val="5"/>
<pointStyle val="0"/>
</element>
</construction>
</geogebra>