hi all
how can I make this program to work? it is loopinging and this is wher it stop,it is no reading anything else
where have i gone wrong here is the code and the output
char F, f, H, h, C, c;
double hrswrked, grosspay = 0, netpay, payrate, totaldeduct = 0, deduction, overtime, extra_time;
double comm_incent = 0, fixedsal = 0, taxfree_allow, totalgross_pay, totalnetpay, totalsales = 0;
String empfirst_name, emplast_name, hourlypaid_workers, payroll_report, payroll_payslip, process_workers, monthlyfixed_workers;
String commiss_workers;
int taxes = 0, emp_idnum, highest, lowest,highestpaid_workers, lowestpaid_workers, highestvalue_workers, lowestvalue_workers;
char inputChar = 0, Char;
double totalpay = 0;
for(int i=1; i<=3; i++){
System.out.println("please enter the employee id number");
emp_idnum = input.nextInt();
System.out.println("please enter the employee first name");
empfirst_name = input.next();
System.out.println("please enter the employee last name");
emplast_name = input.next();
if(Character.toUpperCase(inputChar) ==('F') || Character.toLowerCase(inputChar) ==('f')){
System.out.println("enter your usercode");
System.out.println("please enter the employee fixed salary");
fixedsal = input.nextDouble();
}
else if(Character.toUpperCase(inputChar) == ('C') || Character.toLowerCase(inputChar) == ('c'))
{
System.out.println("enter your usercode");
System.out.println("please enter the employee fixed salary " + fixedsal);
fixedsal = input.nextDouble();
System.out.println("please enter the total sales of the month " + totalsales);
totalsales = input.nextDouble();
}
else if(Character.toUpperCase(inputChar)== ('H') || Character.toLowerCase(inputChar)== ('h'))
{
System.out.println("enter your usercode");
System.out.println("please enter the pay rate");
payrate = input.nextDouble();
System.out.println("please enter the hours of work for the month");
hrswrked = input.nextDouble();
totaldeduct = calGrossF(grosspay, totaldeduct);
totalpay = calGrossH(hrswrked, payrate);
totalsales = calGrossC(fixedsal, comm_incent);
grosspay = calDeductions(grosspay, taxes);
netpay = calNetpay(grosspay, totaldeduct);
}
}
}
}
the output
please enter the employee id number
1200
please enter the employee first name
lenny
please enter the employee last name
john
please enter the employee id number
1458
please enter the employee first name
shaun
please enter the employee last name
jessel
please enter the employee id number
1200
please enter the employee first name
paula
please enter the employee last name
small
need help plz thnkz