title: How to take discount calculation
body: <p>Very new to programming. I would want the user to receive a 10% discount if he/she is over 60 (age>60) and 5% discount if he/she is between over 55 and equal to 60. (60&lt;=age>55). I know that my code is completely wrong, but I would like to fix this step by step if possible. </p>
  
  <pre><code>import java.util.*;
  public static void main(String[] args) {
  
  Scanner input = new Scanner(System.in);
  int price, age;
  double tax, payAmount;
  double discountRate_56_to_60 = 0.05;
  double discountRate_60_above = 0.1;
  payAmount = price * tax;
  
  System.out.print("Price?");
  price = input.nextInt();
  
  System.out.print("Tax(%)?");
  tax = input.nextDouble();
  
  System.out.print("Age?");
  age = input.nextInt();
  
  System.out.println("You pay: $");
  payAmount = input.nextDouble();
  
  if (age &gt; 55) {
      payAmount;
  }
  else if (age &gt;= 60) {
      payAmount;
  }
  
  }
  }
  </code></pre>