<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mywikibiz.com/index.php?action=history&amp;feed=atom&amp;title=Directory%3ADerek_Elder%2FPrograms%2FCheckingAccount2</id>
	<title>Directory:Derek Elder/Programs/CheckingAccount2 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mywikibiz.com/index.php?action=history&amp;feed=atom&amp;title=Directory%3ADerek_Elder%2FPrograms%2FCheckingAccount2"/>
	<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Directory:Derek_Elder/Programs/CheckingAccount2&amp;action=history"/>
	<updated>2026-05-15T23:41:22Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.3</generator>
	<entry>
		<id>https://mywikibiz.com/index.php?title=Directory:Derek_Elder/Programs/CheckingAccount2&amp;diff=71733&amp;oldid=prev</id>
		<title>Derek Elder: Modifications</title>
		<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Directory:Derek_Elder/Programs/CheckingAccount2&amp;diff=71733&amp;oldid=prev"/>
		<updated>2008-10-14T23:48:22Z</updated>

		<summary type="html">&lt;p&gt;Modifications&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:48, 14 October 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l114&quot; &gt;Line 114:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 114:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         transAmt = currentTransAmt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         transAmt = currentTransAmt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     }&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     public String toString() &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;//Modify like CD example&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     public String toString()&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     {&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         NumberFormat fmt = NumberFormat.getCurrencyInstance();&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         NumberFormat fmt = NumberFormat.getCurrencyInstance();&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l152&quot; &gt;Line 152:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 152:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     private float balance;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     private float balance;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     private float totalServiceCharge; //Changed from double&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     private float totalServiceCharge; //Changed from double&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     private int transCount; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;//static?&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     private int transCount;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     private Transaction[] tList;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     private Transaction[] tList;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      public void addTrans(int transID, int transNumber, float transAmt) &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;//change to float&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      public void addTrans(int transID, int transNumber, float transAmt)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      {&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          if(transCount == tList.length)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          if(transCount == tList.length)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l161&quot; &gt;Line 161:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 161:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;               &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;               &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          tList[transCount] = new Transaction(transID, transNumber, transAmt);&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          tList[transCount] = new Transaction(transID, transNumber, transAmt);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;         //balance += transAmt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          transCount++;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          transCount++;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      }&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      public void getTrans(int checkOrDeposit) &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;//void?&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      public void getTrans(int checkOrDeposit)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      {&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          int i;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          int i;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          for(i = 0;i &amp;lt; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;tList.length&lt;/del&gt;;i++)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          for(i = 0;i &amp;lt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;transCount&lt;/ins&gt;;i++)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          {&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;              if(tList[i].getTransID() == checkOrDeposit)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;              if(tList[i].getTransID() == checkOrDeposit)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l174&quot; &gt;Line 174:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 173:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;              }&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;              }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          }&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;         System.out.println(&amp;quot;NOT DONE&amp;quot;);&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      }&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      public int getTransCount() &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;//static&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      public int getTransCount()&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      {&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          return transCount;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          return transCount;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l203&quot; &gt;Line 203:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 201:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      public CheckingAccount() //Needed?&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      public CheckingAccount() //Needed?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      {&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;         balance = 0;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;         totalServiceCharge = 0;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          tList = new Transaction[10];&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          tList = new Transaction[10];&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          transCount = 0;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          transCount = 0;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;         //totalCost = 0.0;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      }&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      public CheckingAccount(float currentBalance, float currentServiceCharge)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      public CheckingAccount(float currentBalance, float currentServiceCharge)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l213&quot; &gt;Line 213:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 212:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          tList = new Transaction[10];&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          tList = new Transaction[10];&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          transCount = 0;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          transCount = 0;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;         //totalCost = 0.0;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      }&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      public String toString() &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;//Modify like CDCollection example&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      public String toString()&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      {&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          NumberFormat fmt = NumberFormat.getCurrencyInstance();&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          NumberFormat fmt = NumberFormat.getCurrencyInstance();&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l261&quot; &gt;Line 261:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 259:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     public static JFrame frame;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     public static JFrame frame;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     public static CheckingAccount account = null;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     public static CheckingAccount account = null;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;//Figure out how to deal with &lt;/del&gt;below500 &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;stuff&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;public static boolean &lt;/ins&gt;below500 &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;= false;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     public static void main(String[] args)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     public static void main(String[] args)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l272&quot; &gt;Line 272:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 270:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         frame.setVisible(true);&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         frame.setVisible(true);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     }&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     public static void doTransactions() &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;//static?&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     public static void doTransactions()&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     {&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;        //Some flags need to be moved to global as well&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         int tCode = 0;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         int tCode = 0;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;        int doAnother;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	String stringBalance, stringTCode, stringTransAmt, message;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	String stringBalance, stringTCode, stringTransAmt, message;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         float balance, transAmt, charge, balanceBeforeCharge;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         float balance, transAmt, charge, balanceBeforeCharge;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;        boolean below500 = false;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         //boolean done = false;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         //boolean done = false;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         charge = 0.00f;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         charge = 0.00f;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l428&quot; &gt;Line 428:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 423:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                           &amp;quot;Final Balance : $&amp;quot; + fmt.format(account.getBalance());&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                           &amp;quot;Final Balance : $&amp;quot; + fmt.format(account.getBalance());&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                 JOptionPane.showMessageDialog(null, message);&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                 JOptionPane.showMessageDialog(null, message);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                doAnother = JOptionPane.NO_OPTION;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                 //done = true;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                 //done = true;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                 //&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;When 0 chosen, terminate program&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                 &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;System.exit(0); &lt;/ins&gt;//&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Modify to window listener?&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             }&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;             }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         }&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Derek Elder</name></author>
	</entry>
	<entry>
		<id>https://mywikibiz.com/index.php?title=Directory:Derek_Elder/Programs/CheckingAccount2&amp;diff=71359&amp;oldid=prev</id>
		<title>Derek Elder: Start of article</title>
		<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Directory:Derek_Elder/Programs/CheckingAccount2&amp;diff=71359&amp;oldid=prev"/>
		<updated>2008-10-12T03:32:58Z</updated>

		<summary type="html">&lt;p&gt;Start of article&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__TOC__&lt;br /&gt;
==GUI.java==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
//*******************************************************************&lt;br /&gt;
//  GUI Class       Author: Derek Elder&lt;br /&gt;
//********************************************************************&lt;br /&gt;
package program02;&lt;br /&gt;
&lt;br /&gt;
import javax.swing.*;&lt;br /&gt;
import java.awt.*;&lt;br /&gt;
import java.awt.event.*;&lt;br /&gt;
&lt;br /&gt;
public class GUI extends JPanel&lt;br /&gt;
{&lt;br /&gt;
   private JLabel prompt;&lt;br /&gt;
   private JRadioButton one, two, three, four;&lt;br /&gt;
&lt;br /&gt;
   public GUI()&lt;br /&gt;
   {&lt;br /&gt;
      prompt = new JLabel(&amp;quot;Choose your action: &amp;quot;);&lt;br /&gt;
      prompt.setFont (new Font(&amp;quot;Helvetica&amp;quot;, Font.BOLD, 30));&lt;br /&gt;
      one = new JRadioButton(&amp;quot;Enter a transaction&amp;quot;);&lt;br /&gt;
      one.setBackground(Color.blue);&lt;br /&gt;
      two = new JRadioButton(&amp;quot;List all transactions&amp;quot;);&lt;br /&gt;
      two.setBackground(Color.blue);&lt;br /&gt;
      three = new JRadioButton(&amp;quot;List all checks&amp;quot;);&lt;br /&gt;
      three.setBackground(Color.blue);&lt;br /&gt;
      four = new JRadioButton(&amp;quot;List all deposits&amp;quot;);&lt;br /&gt;
      four.setBackground(Color.blue);&lt;br /&gt;
&lt;br /&gt;
      ButtonGroup group = new ButtonGroup();&lt;br /&gt;
      group.add(one);&lt;br /&gt;
      group.add(two);&lt;br /&gt;
      group.add(three);&lt;br /&gt;
      group.add(four);&lt;br /&gt;
&lt;br /&gt;
      GUIListener listener = new GUIListener();&lt;br /&gt;
      one.addActionListener(listener);&lt;br /&gt;
      two.addActionListener(listener);&lt;br /&gt;
      three.addActionListener(listener);&lt;br /&gt;
      four.addActionListener(listener);&lt;br /&gt;
&lt;br /&gt;
      //Add the components to the JPanel&lt;br /&gt;
      add(prompt);&lt;br /&gt;
      add(one);&lt;br /&gt;
      add(two);&lt;br /&gt;
      add(three);&lt;br /&gt;
      add(four);&lt;br /&gt;
      setBackground(Color.blue);&lt;br /&gt;
      setPreferredSize(new Dimension(350, 100));&lt;br /&gt;
   }&lt;br /&gt;
   //*****************************************************************&lt;br /&gt;
   //  Represents the listener for the radio buttons&lt;br /&gt;
   //*****************************************************************&lt;br /&gt;
   private class GUIListener implements ActionListener&lt;br /&gt;
   {&lt;br /&gt;
      public void actionPerformed(ActionEvent event)&lt;br /&gt;
      {&lt;br /&gt;
         Object source = event.getSource();&lt;br /&gt;
&lt;br /&gt;
         if(source == one)&lt;br /&gt;
         {&lt;br /&gt;
             Main.doTransactions();&lt;br /&gt;
         }&lt;br /&gt;
         else if(source == two)&lt;br /&gt;
         {&lt;br /&gt;
             Main.listTransactions();&lt;br /&gt;
         }&lt;br /&gt;
         else if(source == three)&lt;br /&gt;
         {&lt;br /&gt;
             Main.listChecks();&lt;br /&gt;
         }&lt;br /&gt;
         else //if(source == four)&lt;br /&gt;
         {&lt;br /&gt;
             Main.listDeposits();&lt;br /&gt;
         }&lt;br /&gt;
      }&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
==Transaction.java==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
//*******************************************************************&lt;br /&gt;
//  Transaction Class       Author: Derek Elder&lt;br /&gt;
//********************************************************************&lt;br /&gt;
&lt;br /&gt;
package program02;&lt;br /&gt;
&lt;br /&gt;
import java.text.NumberFormat;&lt;br /&gt;
&lt;br /&gt;
public class Transaction&lt;br /&gt;
{&lt;br /&gt;
    private int transID;&lt;br /&gt;
    private int transNumber; //Current value of transCount&lt;br /&gt;
    private float transAmt;&lt;br /&gt;
    private String transType;&lt;br /&gt;
    &lt;br /&gt;
    public int getTransID()&lt;br /&gt;
    {&lt;br /&gt;
        return transID; //1 = check, 2 = deposit 3 = service charge&lt;br /&gt;
    }&lt;br /&gt;
    public int getTransNumber()&lt;br /&gt;
    {&lt;br /&gt;
        return transNumber;&lt;br /&gt;
    }&lt;br /&gt;
    public float getTransAmt()&lt;br /&gt;
    {&lt;br /&gt;
        return transAmt;&lt;br /&gt;
    }&lt;br /&gt;
    public Transaction(int currentTransID, int currentTransNumber, float currentTransAmt)&lt;br /&gt;
    {&lt;br /&gt;
        transID = currentTransID;&lt;br /&gt;
        transNumber = currentTransNumber;&lt;br /&gt;
        transAmt = currentTransAmt;&lt;br /&gt;
    }&lt;br /&gt;
    public String toString() //Modify like CD example&lt;br /&gt;
    {&lt;br /&gt;
        NumberFormat fmt = NumberFormat.getCurrencyInstance();&lt;br /&gt;
        String description;&lt;br /&gt;
        &lt;br /&gt;
        if(transID == 1)&lt;br /&gt;
        {&lt;br /&gt;
            transType = &amp;quot;Check&amp;quot;;&lt;br /&gt;
        }&lt;br /&gt;
        else if(transID == 2)&lt;br /&gt;
        {&lt;br /&gt;
            transType = &amp;quot;Deposit&amp;quot;;&lt;br /&gt;
        }&lt;br /&gt;
        else //(transID == 3)&lt;br /&gt;
        {&lt;br /&gt;
            transType = &amp;quot;S.Ch.&amp;quot;;&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        description = transNumber + &amp;quot;\t\t&amp;quot; + transType + &amp;quot;\t\t&amp;quot; + fmt.format(transAmt);&lt;br /&gt;
&lt;br /&gt;
        return description;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
==CheckingAccount.java==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
//*******************************************************************&lt;br /&gt;
//  CheckingAccount Class       Author: Derek Elder&lt;br /&gt;
//********************************************************************&lt;br /&gt;
&lt;br /&gt;
package program02;&lt;br /&gt;
&lt;br /&gt;
import java.text.NumberFormat;&lt;br /&gt;
&lt;br /&gt;
public class CheckingAccount&lt;br /&gt;
{&lt;br /&gt;
    private float balance;&lt;br /&gt;
    private float totalServiceCharge; //Changed from double&lt;br /&gt;
    private int transCount; //static?&lt;br /&gt;
    private Transaction[] tList;&lt;br /&gt;
&lt;br /&gt;
     public void addTrans(int transID, int transNumber, float transAmt) //change to float&lt;br /&gt;
     {&lt;br /&gt;
         if(transCount == tList.length)&lt;br /&gt;
             increaseArray();&lt;br /&gt;
             &lt;br /&gt;
         tList[transCount] = new Transaction(transID, transNumber, transAmt);&lt;br /&gt;
         //balance += transAmt;&lt;br /&gt;
         transCount++;&lt;br /&gt;
     }&lt;br /&gt;
     public void getTrans(int checkOrDeposit) //void?&lt;br /&gt;
     {&lt;br /&gt;
         int i;&lt;br /&gt;
         for(i = 0;i &amp;lt; tList.length;i++)&lt;br /&gt;
         {&lt;br /&gt;
             if(tList[i].getTransID() == checkOrDeposit)&lt;br /&gt;
             {&lt;br /&gt;
                 System.out.println(tList[i]);&lt;br /&gt;
             }&lt;br /&gt;
         }&lt;br /&gt;
         System.out.println(&amp;quot;NOT DONE&amp;quot;);&lt;br /&gt;
     }&lt;br /&gt;
     public int getTransCount() //static&lt;br /&gt;
     {&lt;br /&gt;
         return transCount;&lt;br /&gt;
     }&lt;br /&gt;
     public float getBalance()&lt;br /&gt;
     {&lt;br /&gt;
         return balance;&lt;br /&gt;
     }&lt;br /&gt;
     public float setBalance(float currentBalance, int tCode)&lt;br /&gt;
     {&lt;br /&gt;
         if(tCode == 1 || tCode == 0)&lt;br /&gt;
             balance -= currentBalance;&lt;br /&gt;
         else //if(tCode == 2)&lt;br /&gt;
             balance += currentBalance;&lt;br /&gt;
         return balance;&lt;br /&gt;
     }&lt;br /&gt;
     public float getServiceCharge()&lt;br /&gt;
     {&lt;br /&gt;
         return totalServiceCharge;&lt;br /&gt;
     }&lt;br /&gt;
     public float setServiceCharge(float currentServiceCharge)&lt;br /&gt;
     {&lt;br /&gt;
         totalServiceCharge += currentServiceCharge;&lt;br /&gt;
         return totalServiceCharge;&lt;br /&gt;
     }&lt;br /&gt;
     public CheckingAccount() //Needed?&lt;br /&gt;
     {&lt;br /&gt;
         tList = new Transaction[10];&lt;br /&gt;
         transCount = 0;&lt;br /&gt;
         //totalCost = 0.0;&lt;br /&gt;
     }&lt;br /&gt;
     public CheckingAccount(float currentBalance, float currentServiceCharge)&lt;br /&gt;
     {&lt;br /&gt;
         balance = currentBalance;&lt;br /&gt;
         totalServiceCharge = currentServiceCharge;&lt;br /&gt;
         tList = new Transaction[10];&lt;br /&gt;
         transCount = 0;&lt;br /&gt;
         //totalCost = 0.0;&lt;br /&gt;
     }&lt;br /&gt;
     public String toString() //Modify like CDCollection example&lt;br /&gt;
     {&lt;br /&gt;
         NumberFormat fmt = NumberFormat.getCurrencyInstance();&lt;br /&gt;
         int i;&lt;br /&gt;
&lt;br /&gt;
         String report = &amp;quot;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n&amp;quot;;&lt;br /&gt;
         report += &amp;quot;My Transaction Status\n\n&amp;quot;;&lt;br /&gt;
         report += &amp;quot;Balance: &amp;quot; + balance + &amp;quot;\n&amp;quot;;&lt;br /&gt;
         report += &amp;quot;Total Service Charge: &amp;quot; + fmt.format(totalServiceCharge) + &amp;quot;\n&amp;quot;;&lt;br /&gt;
         report += &amp;quot;Number of Transactions: &amp;quot; + transCount;&lt;br /&gt;
         report += &amp;quot;\n\nChecking Account List:\n\n&amp;quot;;&lt;br /&gt;
         report += &amp;quot;ID\t\tType\t\tAmount\n&amp;quot;;&lt;br /&gt;
         report += &amp;quot;---------------------------------------\n&amp;quot;;&lt;br /&gt;
         &lt;br /&gt;
         for(i = 0; i &amp;lt; transCount; i++)&lt;br /&gt;
              report += tList[i] + &amp;quot;\n&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
         return report;&lt;br /&gt;
     }&lt;br /&gt;
     private void increaseArray()&lt;br /&gt;
     {&lt;br /&gt;
         int i;&lt;br /&gt;
         Transaction[] temp = new Transaction[tList.length * 2];&lt;br /&gt;
&lt;br /&gt;
         for(i = 0; i &amp;lt; tList.length; i++)&lt;br /&gt;
             temp[i] = tList[i];&lt;br /&gt;
         tList = temp;&lt;br /&gt;
     }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
==Main.java==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
//*******************************************************************&lt;br /&gt;
//  Program 2       Author: Derek Elder&lt;br /&gt;
//********************************************************************&lt;br /&gt;
&lt;br /&gt;
package program02;&lt;br /&gt;
&lt;br /&gt;
import java.text.DecimalFormat;&lt;br /&gt;
import javax.swing.JOptionPane;&lt;br /&gt;
import javax.swing.JFrame;&lt;br /&gt;
&lt;br /&gt;
public class Main&lt;br /&gt;
{&lt;br /&gt;
    public static JFrame frame;&lt;br /&gt;
    public static CheckingAccount account = null;&lt;br /&gt;
    //Figure out how to deal with below500 stuff&lt;br /&gt;
   &lt;br /&gt;
    public static void main(String[] args)&lt;br /&gt;
    {&lt;br /&gt;
        frame = new JFrame(&amp;quot;Checking Account Actions&amp;quot;);&lt;br /&gt;
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);&lt;br /&gt;
        GUI panel = new GUI();&lt;br /&gt;
        frame.getContentPane().add(panel);&lt;br /&gt;
        frame.pack();&lt;br /&gt;
        frame.setVisible(true);&lt;br /&gt;
    }&lt;br /&gt;
    public static void doTransactions() //static?&lt;br /&gt;
    {&lt;br /&gt;
        //Some flags need to be moved to global as well&lt;br /&gt;
        int tCode = 0;&lt;br /&gt;
        int doAnother;&lt;br /&gt;
	String stringBalance, stringTCode, stringTransAmt, message;&lt;br /&gt;
        float balance, transAmt, charge, balanceBeforeCharge;&lt;br /&gt;
        boolean below500 = false;&lt;br /&gt;
        //boolean done = false;&lt;br /&gt;
        charge = 0.00f;&lt;br /&gt;
        frame.setVisible(false);&lt;br /&gt;
        if(account == null)&lt;br /&gt;
        {&lt;br /&gt;
            stringBalance = JOptionPane.showInputDialog(&amp;quot;Enter your initial balance: &amp;quot;);&lt;br /&gt;
            balance = Float.parseFloat(stringBalance);&lt;br /&gt;
            //CheckingAccount account = new CheckingAccount();  //Old version&lt;br /&gt;
            account = new CheckingAccount(balance, charge);&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        //while(!done)&lt;br /&gt;
        //do&lt;br /&gt;
        {&lt;br /&gt;
            stringTCode = JOptionPane.showInputDialog(&amp;quot;Enter the trans code: &amp;quot;);&lt;br /&gt;
            tCode = Integer.parseInt(stringTCode);&lt;br /&gt;
            DecimalFormat fmt = new DecimalFormat (&amp;quot;0.00&amp;quot;); //Round to two decimal places&lt;br /&gt;
            if(tCode == 1)&lt;br /&gt;
            {&lt;br /&gt;
                stringTransAmt = JOptionPane.showInputDialog(&amp;quot;Enter the trans amount: &amp;quot;);&lt;br /&gt;
                transAmt = Float.parseFloat(stringTransAmt);&lt;br /&gt;
                account.setBalance(transAmt, tCode);&lt;br /&gt;
                account.addTrans(1,account.getTransCount(),transAmt);&lt;br /&gt;
                if(account.getBalance() &amp;lt; 0.00)&lt;br /&gt;
                {&lt;br /&gt;
                    if(below500 == true)&lt;br /&gt;
                    {&lt;br /&gt;
                        charge = 10.15f; //Cost of Check + Below $0 charge&lt;br /&gt;
                        account.setServiceCharge(charge);&lt;br /&gt;
                        message = &amp;quot;Transaction : Check in the amount of $&amp;quot; + fmt.format(transAmt) + &amp;quot;\n&amp;quot; +&lt;br /&gt;
                                &amp;quot;Current Balance : $&amp;quot; + fmt.format(account.getBalance()) + &amp;quot;\n&amp;quot; +&lt;br /&gt;
                                &amp;quot;Service charge : Check -- charge $0.15&amp;quot; + &amp;quot;\n&amp;quot; +&lt;br /&gt;
                                &amp;quot;Warning : Balance below $50.00&amp;quot; + &amp;quot;\n&amp;quot; +&lt;br /&gt;
                                &amp;quot;Service charge : Below $0 -- charge $10.00&amp;quot; + &amp;quot;\n&amp;quot; +&lt;br /&gt;
                                &amp;quot;Total service charge : $&amp;quot; + fmt.format(account.getServiceCharge());&lt;br /&gt;
                        JOptionPane.showMessageDialog(null, message);&lt;br /&gt;
                        account.addTrans(3,account.getTransCount(),0.15f);&lt;br /&gt;
                        account.addTrans(3,account.getTransCount(),10.00f);&lt;br /&gt;
                    }&lt;br /&gt;
                    else&lt;br /&gt;
                    {&lt;br /&gt;
                        charge = 5.15f; //Cost of Check + Below $500 charge&lt;br /&gt;
                        account.setServiceCharge(charge);&lt;br /&gt;
                        message = &amp;quot;Transaction : Check in the amount of $&amp;quot; + fmt.format(transAmt) + &amp;quot;\n&amp;quot; +&lt;br /&gt;
                                &amp;quot;Current Balance : $&amp;quot; + fmt.format(account.getBalance()) + &amp;quot;\n&amp;quot; +&lt;br /&gt;
                                &amp;quot;Service charge : Check -- charge $0.15&amp;quot; + &amp;quot;\n&amp;quot; +&lt;br /&gt;
                                &amp;quot;Service charge : Below $500.00 -- charge $5.00&amp;quot; + &amp;quot;\n&amp;quot; +&lt;br /&gt;
                                &amp;quot;Total service charge : $&amp;quot; + fmt.format(account.getServiceCharge());&lt;br /&gt;
                        JOptionPane.showMessageDialog(null, message);&lt;br /&gt;
                        below500 = true;&lt;br /&gt;
                        account.addTrans(3,account.getTransCount(),0.15f);&lt;br /&gt;
                        account.addTrans(3,account.getTransCount(),5.00f);&lt;br /&gt;
                    }&lt;br /&gt;
                    //done = false;&lt;br /&gt;
                }&lt;br /&gt;
                else if(account.getBalance() &amp;lt; 500.00 &amp;amp;&amp;amp; below500 == false)&lt;br /&gt;
                {&lt;br /&gt;
                    charge = 5.15f; //Cost of Check + Below $500 charge&lt;br /&gt;
                    account.setServiceCharge(charge);&lt;br /&gt;
                    below500 = true;&lt;br /&gt;
                    if(account.getBalance() &amp;lt; 50.00)&lt;br /&gt;
                    {&lt;br /&gt;
                        message = &amp;quot;Transaction : Check in the amount of $&amp;quot; + fmt.format(transAmt) + &amp;quot;\n&amp;quot; +&lt;br /&gt;
                            &amp;quot;Current Balance : $&amp;quot; + fmt.format(account.getBalance()) + &amp;quot;\n&amp;quot; +&lt;br /&gt;
                            &amp;quot;Service charge : Check -- charge $0.15&amp;quot; + &amp;quot;\n&amp;quot; +&lt;br /&gt;
                            &amp;quot;Warning : Balance below $50.00&amp;quot; + &amp;quot;\n&amp;quot; +&lt;br /&gt;
                            &amp;quot;Total service charge : $&amp;quot; + fmt.format(account.getServiceCharge());&lt;br /&gt;
                        JOptionPane.showMessageDialog(null, message);&lt;br /&gt;
                        account.addTrans(3,account.getTransCount(),0.15f);&lt;br /&gt;
                        account.addTrans(3,account.getTransCount(),5.00f);&lt;br /&gt;
                    }&lt;br /&gt;
                    else&lt;br /&gt;
                    {&lt;br /&gt;
                        message = &amp;quot;Transaction : Check in the amount of $&amp;quot; + fmt.format(transAmt) + &amp;quot;\n&amp;quot; +&lt;br /&gt;
                                &amp;quot;Current Balance : $&amp;quot; + fmt.format(account.getBalance()) + &amp;quot;\n&amp;quot; +&lt;br /&gt;
                                &amp;quot;Service charge : Check -- charge $0.15&amp;quot; + &amp;quot;\n&amp;quot; +&lt;br /&gt;
                                &amp;quot;Service charge : Below $500.00 -- charge $5.00&amp;quot; + &amp;quot;\n&amp;quot; +&lt;br /&gt;
                                &amp;quot;Total service charge : $&amp;quot; + fmt.format(account.getServiceCharge());&lt;br /&gt;
                        JOptionPane.showMessageDialog(null, message);&lt;br /&gt;
                        account.addTrans(3,account.getTransCount(),0.15f);&lt;br /&gt;
                        account.addTrans(3,account.getTransCount(),5.00f);&lt;br /&gt;
                    }&lt;br /&gt;
                }&lt;br /&gt;
                else&lt;br /&gt;
                {&lt;br /&gt;
                    charge = 0.15f;&lt;br /&gt;
                    account.setServiceCharge(charge);&lt;br /&gt;
                    if(account.getBalance() &amp;lt; 50.00)&lt;br /&gt;
                    {&lt;br /&gt;
                        message = &amp;quot;Transaction : Check in the amount of $&amp;quot; + fmt.format(transAmt) + &amp;quot;\n&amp;quot; +&lt;br /&gt;
                                &amp;quot;Current Balance : $&amp;quot; + fmt.format(account.getBalance()) + &amp;quot;\n&amp;quot; +&lt;br /&gt;
                                &amp;quot;Service charge : Check -- charge $0.15&amp;quot; + &amp;quot;\n&amp;quot; +&lt;br /&gt;
                                &amp;quot;Warning : Balance below $50.00&amp;quot; + &amp;quot;\n&amp;quot; +&lt;br /&gt;
                                &amp;quot;Total service charge : $&amp;quot; + fmt.format(account.getServiceCharge());&lt;br /&gt;
                        JOptionPane.showMessageDialog(null, message);&lt;br /&gt;
                        account.addTrans(3,account.getTransCount(),0.15f);&lt;br /&gt;
                    }&lt;br /&gt;
                    else&lt;br /&gt;
                    {&lt;br /&gt;
                        message = &amp;quot;Transaction : Check in the amount of $&amp;quot; + fmt.format(transAmt) + &amp;quot;\n&amp;quot; +&lt;br /&gt;
                                &amp;quot;Current Balance : $&amp;quot; + fmt.format(account.getBalance()) + &amp;quot;\n&amp;quot; +&lt;br /&gt;
                                &amp;quot;Service charge : Check -- charge $0.15&amp;quot; + &amp;quot;\n&amp;quot; +&lt;br /&gt;
                                &amp;quot;Total service charge : $&amp;quot; + fmt.format(account.getServiceCharge());&lt;br /&gt;
                        JOptionPane.showMessageDialog(null, message);&lt;br /&gt;
                        account.addTrans(3,account.getTransCount(),0.15f);&lt;br /&gt;
                    }&lt;br /&gt;
                }&lt;br /&gt;
                //done = false;&lt;br /&gt;
            }&lt;br /&gt;
            else if(tCode == 2)&lt;br /&gt;
            {&lt;br /&gt;
                stringTransAmt = JOptionPane.showInputDialog(&amp;quot;Enter the trans amount: &amp;quot;);&lt;br /&gt;
                transAmt = Float.parseFloat(stringTransAmt);&lt;br /&gt;
                charge = 0.10f;&lt;br /&gt;
                account.setServiceCharge(charge);&lt;br /&gt;
                account.setBalance(transAmt, tCode);&lt;br /&gt;
                account.addTrans(2,account.getTransCount(),transAmt);&lt;br /&gt;
                if(account.getBalance() &amp;lt;= 50.00)&lt;br /&gt;
                {&lt;br /&gt;
                    message = &amp;quot;Transaction : Check in the amount of $&amp;quot; + fmt.format(transAmt) + &amp;quot;\n&amp;quot; +&lt;br /&gt;
                            &amp;quot;Current Balance : $&amp;quot; + fmt.format(account.getBalance()) + &amp;quot;\n&amp;quot; +&lt;br /&gt;
                            &amp;quot;Service charge : Deposit -- charge $0.10&amp;quot; + &amp;quot;\n&amp;quot; +&lt;br /&gt;
                            &amp;quot;Warning : Balance below $50.00&amp;quot; + &amp;quot;\n&amp;quot; +&lt;br /&gt;
                            &amp;quot;Total service charge : $&amp;quot; + fmt.format(account.getServiceCharge());&lt;br /&gt;
                    JOptionPane.showMessageDialog(null, message);&lt;br /&gt;
                    account.addTrans(3,account.getTransCount(),0.10f);&lt;br /&gt;
                }&lt;br /&gt;
                else&lt;br /&gt;
                {&lt;br /&gt;
                    message = &amp;quot;Transaction : Deposit in the amount of $&amp;quot; + fmt.format(transAmt) + &amp;quot;\n&amp;quot; +&lt;br /&gt;
                            &amp;quot;Current Balance : $&amp;quot; + fmt.format(account.getBalance()) + &amp;quot;\n&amp;quot; +&lt;br /&gt;
                            &amp;quot;Service charge : Deposit -- charge $0.10&amp;quot; + &amp;quot;\n&amp;quot; +&lt;br /&gt;
                            &amp;quot;Total service charge : $&amp;quot; + fmt.format(account.getServiceCharge());&lt;br /&gt;
                    JOptionPane.showMessageDialog(null, message);&lt;br /&gt;
                    account.addTrans(3,account.getTransCount(),0.10f);&lt;br /&gt;
                }&lt;br /&gt;
                //done = false;&lt;br /&gt;
            }&lt;br /&gt;
            else //tCode = 0&lt;br /&gt;
            {&lt;br /&gt;
                balanceBeforeCharge = account.getBalance();&lt;br /&gt;
                charge = account.getServiceCharge();&lt;br /&gt;
                account.setBalance(charge, tCode);&lt;br /&gt;
                message = &amp;quot;Transaction : End&amp;quot; + &amp;quot;\n&amp;quot; +&lt;br /&gt;
                          &amp;quot;Current Balance : $&amp;quot; + fmt.format(balanceBeforeCharge) + &amp;quot;\n&amp;quot; +&lt;br /&gt;
                          &amp;quot;Total service charge : $&amp;quot; + fmt.format(account.getServiceCharge()) + &amp;quot;\n&amp;quot; +&lt;br /&gt;
                          &amp;quot;Final Balance : $&amp;quot; + fmt.format(account.getBalance());&lt;br /&gt;
                JOptionPane.showMessageDialog(null, message);&lt;br /&gt;
                doAnother = JOptionPane.NO_OPTION;&lt;br /&gt;
                //done = true;&lt;br /&gt;
                //When 0 chosen, terminate program&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
        frame.setVisible(true);&lt;br /&gt;
    }&lt;br /&gt;
    public static void listTransactions()&lt;br /&gt;
    {&lt;br /&gt;
        System.out.println(account);&lt;br /&gt;
    }&lt;br /&gt;
    public static void listChecks()&lt;br /&gt;
    {&lt;br /&gt;
        account.getTrans(1);&lt;br /&gt;
    }&lt;br /&gt;
    public static void listDeposits()&lt;br /&gt;
    {&lt;br /&gt;
        account.getTrans(2);&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Derek Elder</name></author>
	</entry>
</feed>