title: How to change value in getter using C#?
body: <p>So I'm trying to create a program which reads input from the user. Once the inputs are submitted, it needs to return some data but it always returns 0 for each value.</p>
  
  <p>Let's say that I'm asking the user to enter 5 inputs:</p>
  
  <p><code>firstPaychek, secondPaycheck, finanancialAid, allowances and tips</code>.</p>
  
  <p>I also created those variables to 0.0 since all of them are double. Here it is the setter and getter of firstPaycheck</p>
  
  <pre><code>private double payCheckOne = 0.0;
  private double payCheckTwo = 0.0;
  private double financialAid = 0.0;
  private double allowance = 0.0;
  private double TIPS = 0.0;
  
  public double checkOne {
      get { return (payCheckOne / 12); }
      set { payCheckOne = value; }
  }
  </code></pre>
  
  <p>Now, let' say that I would like to return the addition of every value:</p>
  
  <pre><code>public void getTotalIncome() {
      double totalIncome = (payCheckOne + payCheckTwo + financialAid + allowance + TIPS);
      Console.WriteLine("------------ Total Income ------------");
      Console.WriteLine(totalIncome);
      Console.WriteLine("--------------------------------------");
  }
  </code></pre>
  
  <p>I would like to say, that all the blocks of code above belong to an Income class. I'm trying to use them in a class called Expenses and from there I'm calling the getMonthly method in my main class.</p>
  
  <p>Here it is my repl.it:
  <a href="https://repl.it/@KevinAzuara/Testing" rel="nofollow noreferrer">https://repl.it/@KevinAzuara/Testing</a></p>