title: Java Program Calculate Average Using Standard values (code)
body: <p>I need help about Average calculator....</p>
  
  <p>Q: Given that you have five input values and “average” method, calculate the average value for the five input values inside the average method and return it .</p>
  
  <pre class="lang-java prettyprint-override"><code>public class MyCalculator {
  
      int input1 = 10;
  
      int input2 = 20;
  
      int input3 = 30;
  
      int input4 = 40;
  
      int input5 = 50;
  
      public float average() {
  
          // TODO: write java code to calculate the average for all input variables
  
           return 0;
      }
  }
  </code></pre>