I would like to create a pay roll system in java.

Asked By 50 points N/A Posted on -
qa-featured

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.

SHARE
Answered By 0 points N/A #185855

I would like to create a pay roll system in java.

qa-featured

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.

Login/Register to Answer

Related Questions