Write Java Code needed to perform the following:
• Calculate state withholding tax at 6.0% and calculate federal withholding tax at 25.0%.
• Calculate dependent deductions at 2.0% of the employee's salary for each dependent.
• Calculate total withholding.
• Calculate take-home pay as salary minus total withholding plus deductions.
Please help with the area's highlighted in yellow.
// This program calculates an employee's take home pay.
publicclass Payroll
{
publicstaticvoid main(String args[])
{
double salary = 1250.00;
doublestateTax;
doublefederalTax;
doublenumDependents = 2;
doubledependentDeduction;
doubletotalWithholding;
doubletakeHomePay;
// Calculate state tax here.
System.out.println("State Tax: tiny_mce_markerquot; + stateTax);
// Calculate federal tax here.
System.out.println("Federal Tax: tiny_mce_markerquot; + federalTax);
// Calculate dependant deduction here.
System.out.println("Dependents: tiny_mce_markerquot; + dependentDeduction);
// Calculate total withholding here.
// Calculate take home pay here.
System.out.println("Salary: tiny_mce_markerquot; + salary);
System.out.println("Take Home Pay: tiny_mce_markerquot; + takeHomePay);
System.exit(0);
}
}