java - Sum of integers in an array and multiplying integer by 1.5 -
i having issue getting sum of integers in array , issue getting product of integer * 1.5. code below off new java , have been @ hours , hours. purpose of program enter number of hours worked, each day, 5 days. that, , pay rate, you're supposed output average hours worked, total hours, , total pay. pay should include overtime if there any. appreciated. string name; string id; int payrate; int[] hours = new int[5]; int avghours; int totalpay; int totalhours = 0; int counter; int overtime = 0; //housekeeping system.out.print("enter employee's name: "); inputstring = input.readline(); name = inputstring; system.out.print("enter employee's id: "); inputstring = input.readline(); id = inputstring; system.out.print("enter employee's pay rate: "); inputstring = input.readline(); payrate = integer.parseint(inputstring); //hourspay counter = 0; for(hours[counter] = 0; counter < 5; counter++) { system.out.print("how many ho...