title: java.lang.ArithmeticException: / by zero, logic error?
body: <p>Hi so maybe i'm not seeing the where the error lies or maybe i don't know java well enough to know the execute order of operations but can someone explain to me why it is going wrong?</p>
  
  <p>I'm trying to write a code to simply calculate the minimum grade you would have to get to get your wanted grade on ex a module in a course if you know your weight on your grades and one of the grades already.</p>
  
  <p>//calculate minimum grades</p>
  
  <pre><code>public int calculateMinimumGradeWith2Ass1unknown (int Grade1, int Weight1, int WeightOnNext, int WantedOverAll){
  
      int val1 = Grade1*(Weight1/100);
      int estimate = WantedOverAll-val1;
      int Grade2 = estimate/(WeightOnNext/100);
  
      return Grade2;
  }
  </code></pre>
  
  <p>I appriciate any kind of help :)</p>