title: temporary storage without using database in C#
body: <p>I have this code wherein i compute the total coins inserted to the piggy bank</p>
  
  <pre><code> private void computeTotal()
          {
              tenpesos = (int)tenpeso.Value * 10;
              fivepesos = (int)fivepeso.Value * 5;
              onepesos = (int)onepeso.Value * 1;
              twofivecents = (int)twofivecent.Value * .25;
              tencents = (int)tencent.Value * .10;
              fivecents = (int)fivecent.Value * .05;
  
              total = tenpesos + fivepesos + onepesos + twofivecents + tencents 
                  + fivecents;
  
              totalText.Text = Convert.ToString(total);
  
          }
  </code></pre>
  
  <p>what im missing is i want to remember the overall total of my piggy bank as long as the user keeps adding coins or until he closes the application. how can i do this without using the database?</p>
  
  <p><a href="https://i.stack.imgur.com/xCq49.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xCq49.png" alt="enter image description here"></a></p>