Guest User

Untitled

a guest
Apr 16th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. public static void highestAverage(String[] state, String[] desc, String[] code, long[] totalWages, long[] totalHours, double avgHourly) {
  2. String temp = state[0];
  3. int hours = 0;
  4. int pay = 0;
  5. for (int i = 0; i < state.length; i++) {
  6. if (state[i].equals(temp)) {
  7. hours += totalHours[i];
  8. pay += totalWages[i];
  9. }
  10. else {
  11. temp = state[i];
  12. hours = 0;
  13. pay = 0;
  14. if (hours / pay >= avgHourly * 1.1)
  15. System.out.println("10% higher than us average");
  16.  
  17.  
  18.  
  19. }
  20.  
  21. }
  22. }
  23. }
Add Comment
Please, Sign In to add comment