hi
i am practicing this program here and i am outputting zero. trying my best where is the error
here is the code
double fed_tax = 0, state_tax = 0, hrswrk, payrate=0, gross_salary = 0;
double hrlyrate=0;
System.out.println("hi please enter your first name");
String firstname = userinput.next();
System.out.println("hi please enter your last name");
String lastname = userinput.next();
System.out.println("hi please enter the number of hours work");
hrswrk = userinput.nextDouble();
double hrs = (hrlyrate * hrswrk);
hrs = (payrate * hrswrk);
gross_salary = (fed_tax * 0.20) + gross_salary;
gross_salary = (state_tax * 0.9) + gross_salary;
double total_deduction = (fed_tax + state_tax);
double net_salary = (gross_salary - total_deduction);
System.out.println("the employee name is "+firstname+lastname);
System.out.println("the total deduction is "+total_deduction);
System.out.println("the gross pay is "+gross_salary);
System.out.println("the net salary is "+net_salary);