The user inputs are the gross income and number of dependents. The program calculates the income tax based on the inputs and the tax law I'm learning the ropes of Java. So far everything is going good. Can you please review my code and tell me what I can do to make it cleaner - or what I need to improve on?. I'll appreciate it so much.
This program:
The user inputs are the gross income and number of dependents. The program calculates the income tax based on the inputs and the tax law and then displays the income tax.
Here's a screen shot of the code in the IDE and a flowchart.
(IDE)

(Flowchart)

import java.util.*;
public class lab4 {
    public static void main(String args[]) {
        Scanner input = new Scanner(System. in);

        System.out.println(&quot;Enter gross income: &quot;);
        double grossIncome;
        grossIncome = input.nextDouble();

        System.out.println(&quot;Enter the number of dependents: &quot;);
        double dependents;
        dependents = input.nextDouble();

        final double TAX_RATE = 0.2;
        final double STANDARD_DEDUCTION = 10000.00;
        final double DEPENDENT_DEDUCTION = 2000.0;
        final double grossIncomeafterdeduction = grossIncome - (STANDARD_DEDUCTION + DEPENDENT_DEDUCTION * dependents);

        double incomeTax;
        incomeTax = grossIncomeafterdeduction * TAX_RATE;

        double grossincometax;
        grossincometax = grossIncome - incomeTax;

        System.out.println(&quot;The income tax is $ &quot; + incomeTax);

        System.out.println(&quot;The gross income after tax $ &quot; + grossIncometax);
    }
}
Only import what you need from java util not the whole package.
Move constants to member level and make static, or pass in these parameters to your program.
Use a money package for calculations involving money.