daily pastebin goal
38%
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top