/****************************************************************
*   Eddie Corrales 				2/20/07		*
*   Public Class Dialog 			Prof. BAM	*
*  								*
*   Will get the employee name, id, worked, and amount of 	*
*   hourly pay and calulate on how much the person has earned 	*
*   Will display all DATA 					*
*								*
*****************************************************************/



import java.util.Scanner;						// Scanner Class


public class X180Payroll

{
	public static void main(String[]args)

	{


		String name;						// Employee Name

		int id;							// Employee ID number
		double hours, pay;          				// Hours worked and PayRate
		Scanner empire = new Scanner(System.in);

									//Input Data
		System.out.print("Enter Employee first Name: ");
		name = empire.nextLine();

		System.out.print("Enter Employee ID number: ");
		id = empire.nextInt();

		System.out.print("Enter the number of hours worked: ");
		hours = empire.nextDouble();

		System.out.print("Please enter the hourly pay rate: ");
		pay = empire.nextDouble();

									// Create Payroll Object
		X180PayrollClass Emp;

		Emp = new X180PayrollClass(hours, pay);


									// Output display data

		System.out.println();
		System.out.println();
		System.out.println(name + ", Employee Number " + id +  " Worked " + hours + " hours this week.");
		System.out.println(name +"'s hourly pay rate is $" + pay + " per hour");
		System.out.println(name +"'s Gross Pay for the week is $" + Emp.getGrosspay());

	}
}













