Lunes, Marso 19, 2012

payroll

import java.util.*;
import java.io.*;
import java.util.Scanner;

class payroll
{
public static void main(String[] args)
{

Scanner scan = new Scanner(System.in);

String empcode, answer;
double timeIn, timeOut;


do
{

System.out.println();
System.out.println("Enter Employee Code: ");
empcode = scan.next();

if(empcode.equalsIgnoreCase("A01-0001"))
{

System.out.println("********************************");
System.out.println(" ");
System.out.println("Employee Name: Juan Santiago");
System.out.println("Employee Code: " + empcode);
System.out.println("Salary Level: Level 1");
System.out.println("Salary Rate: Php 380.00/day");
System.out.println(" ");
System.out.println("********************************");


String[] week = {"Monday", "Tuesday", "Wednesday", "Thursday", "Friday"};

double[] dataTimeIN = new double[5];
double[] dataTimeOUT = new double[5];

int i=0;
double hrsWorked = 0, totalHrsWorked = 0;

for (i=0; i < week.length; i++)
{

System.out.println("Enter time in for " + week[i] + ": ");
timeIn = scan.nextDouble();

System.out.println("Enter time out for " + week[i] + ": ");
timeOut = scan.nextDouble();

}



}
else if(empcode.equalsIgnoreCase("A01-0002"))

{



}

else if(empcode.equalsIgnoreCase("A01-0003"))

{



}
else
System.out.println("Employee cannot be found on the database! ");

System.out.println("Do you want to calculate again? (YES/NO)");
answer = scan.next();
}
while(answer.equalsIgnoreCase("YES"));

}
}

1 komento:

  1. Welcome To Global Tech Institue Of ManagementThe world today reflect the cataclysmic environment in which we live new challenges that leaders across the stream are facing include standards of corporate social responsibility, sustainable development resource and energy efficiency coming of universal social mores and culture and emerging markets. The Leader of tomorrow has to work within a context that extends far beyond the classic conventional concepts to consider and foretell the jigsaw of relationships across society, nature, technology, culture etc.



    TumugonBurahin