The operator * is undefined for the argument type(s) double : I'm working through an old MIT course trying to learn java in my spare time. This early assignment is about calculating pay with overtime. How do I produce output that combines the output for each employee so I get output like this:
Employee 1 gets paid $262.5 but gets paid below the minimum wage at $7.5
Employee 3 works 73.0 hours which is over the legal limit and gets paid $895.0
 
public class FooCorporation {

	public static void main(String[] arguments) {

		double[] basePay = { 7.50, 8.20, 10.00 };
		double[] hoursWorked = { 35, 47, 73 };
		double[] totalPay = new double[basePay.length];
		String[] Employee = { "Employee 1", "Employee 2", "Employee 3" };
		{
			for (int x = 0; x < basePay.length; x++) {
				if (basePay[x] < 8.0) {
					System.out.println(Employee[x] + " gets paid below the minimum wage at $" + basePay[x]);
				}
				if (hoursWorked[x] > 60) {
					System.out.println(Employee[x] + " works " + hoursWorked[x] +  " hours which is over the legal limit" );
				}
				if (hoursWorked[x] > 40) {
					totalPay[x] = (40.0 * basePay[x]) + ((hoursWorked[x] - 40.0) * (basePay[x] * 1.5));
				} else if (hoursWorked[x] < 40.0)
					totalPay[x] = hoursWorked[x] * basePay[x];
				System.out.println(Employee[x] + " gets paid $" + totalPay[x]);
			}
		}
	}
}