title: Calculate additional value in Java
body: <p>I need to write a java method to calculate an additional value.</p>
  
  <p>I have a candy bar that costs $10 (<code>price</code>). I need to calculate an added value of 20% (<code>ADDED_VALUE</code>) so I do the following:</p>
  
  <pre><code>price + price*ADDED_VALUE or 10 + 10*20%
  </code></pre>
  
  <p>and I get <code>12</code>. But now I need to calculate 10% (<code>NEW_ADD_VALUE</code>) on this <code>12</code>, but I don't know how to do it.</p>
  
  <p>What I've tried so far:</p>
  
  <pre><code>double priceWithAddedValue() {
  
      return price + price * ADDED_VALUE + price * NEW_ADDED_VALUE
  }
  </code></pre>
  
  <p>However the above code returns <code>13</code> and I'm suppose to get <code>13.2</code>.</p>