Hi to everyone,
I would like to create a pay roll system in java. I hope there is some reference or basic java sample for payroll system all over the internet. An open source codes that are free to al is a very helpful one. Can you provide me some helpful tips?
Your suggestion is very much welcome.
I would like to create a pay roll system in java.
Dear user,
Start by planning what you are going to do. Here is a simple and basic outline of payroll in Java:
import java.util.Scanner;
public class pay1
{
public static void main(String [] args)
{
Scanner reader = new Scanner(System.in);
double wage, days, hours;
double pay;
System.out.print("Wage?: ");
wage= reader.nextDouble();
System.out.print("Days Worked: ");
days= reader.nextDouble();
System.out.print("Hours worked: ");
hours= reader.nextDouble();
pay=wage*hours*days;
System.out.print ("Total pay before the government steals away some: ");
System.out.println(pay);
}
}
Hope this will help you.
Thank you.