import cs1.Keyboard;
public class ParallelSearch
{
	public static void main (String[] args)
	{
		//Console c = new Console();

		int findNum=0;

		int[] empNum = {15, 99, 67, 24, 43};
		double[] salary = {29000, 32500, 56000, 48500, 42950};
		int element = -1;

		System.out.print ("Enter employee number: ");
		findNum = Keyboard.readInt();

		for (int i = 0; i < empNum.length; i++)
			if (empNum[i] == findNum)
				element = i;

		if (element != -1)
			System.out.println ("\nThe salary for employee "
			                       + findNum + " is " + salary[element]);
		else
			System.out.println ("Employee " + findNum + " was not found.");
	}
}
