// 11/08/2017 /** The Payroll class calculates the Net Pay for several * employees. * This is version 6a of the Payroll class which modifies * version 5. (note we will have 6c which modifies 5c) * This version uses ARRAYS. * */ import java.util.Scanner; public class Payroll6a { /** * pay is calculated by multiplying hours times rate. */ public static void main(String[] args) { Scanner readObject = new Scanner(System.in); int numEmployees; System.out.print("Enter the number of employees: "); numEmployees = readObject.nextInt(); // allocate parallel arrays of size numEmployees double[] rate = new double[numEmployees]; double[] hours = new double[numEmployees]; double[] pay = new double[numEmployees]; String[] name = new String[numEmployees]; readObject.nextLine(); // to skip newline in input buffer // for loop to read in info and calculate pay for (int i=0; i