•

Check out our Community Blogs

Register and join over 40,000 other developers!

### Recent Blog Entries

• phi

I love this community !

# Very Simple Payroll System In Java (Dos Base)

simple payroll system how to make payroll system payroll system DOS BASE PAYROLL payroll in java making payroll in java

25 replies to this topic

### #1 papabear

papabear

CC Devotee

• Senior Member
• 472 posts
• Location:DarkSide

Posted 26 May 2012 - 05:34 AM

Hello everyone and thanks for visiting my tutorial as you can see this would be a very simple Payroll System in java and would run in Command Prompt. This wouldn't have any hard validations or something because it's very simple my intention for this is to teach the basic function of a payroll system as well as to improve and hone my logic and the logic of my readers. To enhance mine and their problem solving ability, as I'm writing this tutorial I'm also learning this so let's learn together..

Difficulty : Intermediate
Programming Style : Procedural

Overview of the Project

The accounting division is managing the salary computation of the agency employees. They are computing weekly net income of three hundred (300) employees with various salary rates. To facilitate the computation a computer program needs to be designed.

Technical Specification

A. Environment

The application is designed for console (DOS Mode).
B. User

The application is designed for a single user.
C. Policies

· Salary rate

The employee have the following salary rates

- Level 1= Php 380.00/day

- Level 2 = Php 450.00/day

- Level 3= Php 550.00/day

· Hourly Rate

Hourly rate for regular working day is computed using the formula below:

Hourly Rate = Employee rate per level/ 8

· Holiday Rate

Hourly rate for holiday is computed using the formula below:

Hourly Rate (holidays) = (Employee rate per level/ 8)*1.1

· Overtime rate

Overtime rate is computed using the formula below:

Overtime rate/hour = (Basic salary rate/ 8 hrs)*1.1

Overtime starts at 17:30 and ends at 20:30

Each worker is required to work five days a week, eight hours per day (08:00-17:00)

· Allowance

Each employee is entitled with Five hundred pesos (Php 500.00) weekly allowance.

· Deductions

Each employee is subjected to the following deductions:

- Tardiness includes absences, under time and late. Refer to salary computation for more details.

- Tax deduction is 10% of the weekly gross salary income

- GSIS (1% for level 1, 1.5% for level 2 and 2% for level 3 of the basic salary rate of the worker)

· Salary Computation

Late (in hours) = time-in-08:00 //in case time-in is less than or equal to 08:00, Late is equal to zero

Under time (in hours) =17:00-time-out //in case time out is equal or greater than 17:00, under time is equal to zero

Daily work hours = 8hrs- (late + under time) //8 hrs should be replaced with 0 in case the person is absent.

Overtime = overtime out – overtime in // overtime starts at 17:30 and ends at 20:30

Overtime income = summation of (overtime x overtime rate per hour)

Regular income = summation of (hourly rate x daily work hours)

Weekly Gross Salary Income (WGSI) =regular income + overtime

Weekly Net Salary Income= (WGSI –(Tax deduction + GSIS) )+ allowance

Total number of work hours = summation of daily work hours

A. System Operation

1. Inputs

The system will require the following inputs from the user:

a. Employee code

b. Time (In-Out), Monday-Friday

c. Overtime (In-Out) Monday-Friday

d. Coverage date

2. Process

After the above information has been entered the system will utilize its record to look for the level of the employee (employee.txt) then compute for the regular income, overtime income, gross income, net income.

A. Data Format

· Time will be in military format (00:00-24:00)

· Date shall be in this format May 18, 2009

· Currency shall be in this format (Php 2, 800.00)

here's my sample outputs

Now that you've read the problem and the policies we can now create a solution and start programming.

Before starting we must first create a new file and name it "Employee.txt"
if you ever read the policies.. that file will contain the employee code, employee level, and salary rate/hour.

Put this inside the Employee.txt

```001
Employee A
Level 1
380

002
Employee B
Level 2
450

003
Employee C
Level 3
550```

please make sure that every employee record was separated by a new line. We are going to use this as a sign that the record is finish.

Let's create our main class

```
import java.io.*;
public class payroll {
public static void main(String args[])throws IOException{

}
}
```

and import the java input output library to be able to use bufferedreader.

Let's declare a variable that will be use as a flag if the entered employee code does exists.. if not we will let the user to enter another one.

`boolean notExists = true;`

let's create a while loop for this.

```while(notExists == true) {
//user input and declaration/start of the real program
//will go here.

//if the user inputs invalid employee code then
//don't change the value of notExists to true so it will repeat at the start.
//if it does exists then let's change the value of notExists to false to tell that we found a matching record
//for that employee code
}
```

let's declare the variables and objects that we are going to use in this project.

```//objects
FileInputStream fstream = new FileInputStream("Employee.txt");
DataInputStream in = new DataInputStream(fstream);

//Declarations
String str = "", UserInput = "", tmp = "";
String empcode = "", empname = "", emplevel = "";
double emprate = 0;
int ctr = 0;
String timeIn = "", timeOut = "", holiday = "", overtin = "", overtout = "";
double totalHours = 0, hours = 0, minutes = 0, tmpTime = 0, late = 0, undertime = 0, overHours = 0, overMinutes = 0;
double salary = 0, overSal = 0, tmpSal = 0, regular = 0;
double tmpLate = 0, tmpHour = 0, tmpUndertime = 0;```

under the declarations let's now ask the user for input

```System.out.print("Enter Employee Code : ");

let's now find if the user inputted employee code is there by looping through the text file

```//loop through the text file
if ( str.equalsIgnoreCase(UserInput) ) {
empcode = UserInput;
//found the userinput, store the details now
//lets put everyline into a variable for reference use
switch(ctr) {
case 0:
empname = tmp;
break;
case 1:
emplevel = tmp;
break;
case 2:
emprate = Double.parseDouble(tmp);
break;
}
ctr++;

}

}
//System.out.println(str);
}```

we're done storing the employee data into some variables and let's now check if the employee exists by using a control statement if - else

```//check if record exists
if( !(empcode.equalsIgnoreCase("")) ) {
//continue the process
} else {

System.out.println("-------------------Record Doesn't Exists---------------------------");
notExists = true;
}```

let's continue..

Display the employee data if its existing

```//display the record if it exists
System.out.println("-------------------Employee Details---------------------------");
System.out.println("Name of the Employee : " + empname);
System.out.println("Employee Code : " + empcode);
System.out.println("Employee Level : " +emplevel);
System.out.println("Employee Rate : " + emprate);```

remember to put the code above inside the if statement where we check if the employee code exists.

let's continue with the user input, and let the user input the time-in and time-out from monday to friday and the overtime.

```//enter for time in and time out
String CurrentDay = "";
int ctr2 = 1;
while(ctr2 <= 5){
switch(ctr2) {
case 1:
CurrentDay = "Monday";
break;
case 2:
CurrentDay = "Tuesday";
break;
case 3:
CurrentDay = "Wednesday";
break;
case 4:
CurrentDay = "Thursday";
break;
case 5:
CurrentDay = "Friday";
break;
}
System.out.println();
System.out.println();

//ask for time in and time out for regular and overtime
//also ask if today is holiday
System.out.print("Enter Time In for " + CurrentDay + " : ");
System.out.print("Enter Time Out for " + CurrentDay + " : ");
System.out.print("Is today holiday? [y/n] : ");
System.out.print("Enter Time In for Over Time : ");
System.out.print("Enter Time Out for Over Time : ");

the user will have to input correctly the format of the time is hh:mm
ex. 08:00

we have to separate the hour from the minute to do that we can make use of the function split.

```//split the hour and minute
String tin[] = timeIn.split(":");
String tout[] = timeOut.split(":");```

here's how I calculated the time

```//time calculation
hours += ( Double.parseDouble(tout[0]) - Double.parseDouble(tin[0]) ) >= 9 ? 8 : Double.parseDouble(tout[0]) - Double.parseDouble(tin[0]);
tmpTime = Double.parseDouble(tout[0]) - Double.parseDouble(tin[0]);
tmpHour = ( Double.parseDouble(tout[0]) - Double.parseDouble(tin[0]) ) >= 9 ? 8 : Double.parseDouble(tout[0]) - Double.parseDouble(tin[0]);```

calculation for late and undertime

```//minute late and under time calculation
if ( tmpTime <= 9 ) {
late += Double.parseDouble(tin[1]);
tmpLate = Double.parseDouble(tin[1]);
}

if ( Double.parseDouble(tout[0]) < 17 ) {
undertime += 60 - Double.parseDouble(tout[1]);
tmpUndertime = 60 - Double.parseDouble(tout[1]);
}```

here's the salary rate per hour calculation and per day calculation

```//salary rate calculation
if ( holiday.equalsIgnoreCase("y") ) {
tmpSal = (emprate / 8) * 1.1;
tmpTime = (( (tmpHour*60) - (tmpLate + tmpUndertime) ) / 60);
hours -= tmpTime;
overHours += (( (tmpHour*60) - (tmpLate + tmpUndertime) ) / 60);
overSal += tmpSal * tmpTime;
} else {
tmpSal = emprate / 8;
tmpTime = (( (tmpHour*60) - (tmpLate + tmpUndertime) ) / 60);
salary += tmpSal * tmpTime;
//System.out.println(salary + " = " + tmpSal * tmpHour + " " + tmpLate + " " + tmpUndertime + " ");
}```

if ever there is an overtime.. here's how I solve it

```//if there is overtime
if ( !( overtin.equalsIgnoreCase("00:00") || overtin.equalsIgnoreCase("") ) ) {
String ovin[] = overtin.split(":");
String ovout[] = overtout.split(":");

double tmp1 = 0;
double tmp2 = 0;
double minTmp = 0;

tmp1 = Double.parseDouble(ovin[0]) <= 17 ? 17 : Double.parseDouble(ovin[0]);
tmp2 = Double.parseDouble(ovout[0]) <= 20 ? 20 : 20;
minTmp = Double.parseDouble(ovin[1]) + Double.parseDouble(ovout[1]);

if ( (tmp2 - tmp1) <= 3 && tmp2 - tmp1 > 0) {
overMinutes = ((tmp2 - tmp1) * 60) - minTmp;
overHours += overMinutes/60;
double overTmp = overMinutes/60;
double overRate = (emprate / 8) * 1.1;
overSal += overRate * overTmp;
}
}```

before the end of the last while loop we have to increment the counter

`ctr2++;`

in order to move into the next day.

our basic calculations is now done.. we now have to calculate all the total tax and gsis and Net income

let's ask the user for the date span

```System.out.print("Enter Date Covered : " );

let's calculate the total hours of work the employee did.. by converting the hours into minutes and adding the minutes together and converting it back into hours

```minutes += (hours*60) - (late + undertime);
totalHours = minutes/60;```

let's now print some details

```System.out.println();
System.out.println("-------------------------------------------");
System.out.println("Name of the Employee : " + empname);
System.out.println("Employee Code : " + empcode);
System.out.println("Employee Level : " +emplevel);
System.out.println("Employee Rate : " + emprate);
System.out.println("-------------------------------------------");
System.out.println("Date Covered : " + covered);
System.out.println("Total Hours : " + totalHours);
System.out.println("Overtime : " + overHours);
System.out.println("Regular Income : " + salary );
System.out.println("Overtime Income : " + overSal );
System.out.println("Gross Income : " + (salary + overSal) );
System.out.println("Deductions");```

here's the tax and gsis computation with the net income calculation

```//tax and gsis deduction computation
double tax = ((salary + overSal) * .10);
double gsis = 0;

if( emplevel.equalsIgnoreCase("Level 1") ) {
gsis = (salary + overSal) * .01;
} else if ( emplevel.equalsIgnoreCase("Level 2") ) {
gsis = (salary + overSal) * .015;
} else {
gsis = (salary + overSal) * 0.02;
}

System.out.println(" * Tax : " + tax);
System.out.println(" * GSIS : " + gsis);
System.out.println("Net Income : " + (( (salary + overSal) - (tax + gsis) ) + 500) );

System.out.println("-------------------------------------------");

notExists = false;```

we have to make notExist value into false because we want to tell that the user exists and we want to terminate the loop.

putting all the code snippets together

```import java.io.*;
public class payroll {
public static void main(String args[])throws IOException{

boolean notExists = true;

while(notExists == true) {
//objects
FileInputStream fstream = new FileInputStream("Employee.txt");
DataInputStream in = new DataInputStream(fstream);

//Declarations
String str = "", UserInput = "", tmp = "";
String empcode = "", empname = "", emplevel = "";
double emprate = 0;
int ctr = 0;
String timeIn = "", timeOut = "", holiday = "", overtin = "", overtout = "";
double totalHours = 0, hours = 0, minutes = 0, tmpTime = 0, late = 0, undertime = 0, overHours = 0, overMinutes = 0;
double salary = 0, overSal = 0, tmpSal = 0, regular = 0;
double tmpLate = 0, tmpHour = 0, tmpUndertime = 0;

System.out.print("Enter Employee Code : ");

//loop through the text file
if ( str.equalsIgnoreCase(UserInput) ) {
empcode = UserInput;
//found the userinput, store the details now
//lets put everyline into a variable for reference use
switch(ctr) {
case 0:
empname = tmp;
break;
case 1:
emplevel = tmp;
break;
case 2:
emprate = Double.parseDouble(tmp);
break;
}
ctr++;

}

}
//System.out.println(str);
}

System.out.println();
System.out.println();

//check if record exists
if( !(empcode.equalsIgnoreCase("")) ) {
//display the record if it exists
System.out.println("-------------------Employee Details---------------------------");
System.out.println("Name of the Employee : " + empname);
System.out.println("Employee Code : " + empcode);
System.out.println("Employee Level : " +emplevel);
System.out.println("Employee Rate : " + emprate);

//enter for time in and time out
String CurrentDay = "";
int ctr2 = 1;
while(ctr2 <= 5){
switch(ctr2) {
case 1:
CurrentDay = "Monday";
break;
case 2:
CurrentDay = "Tuesday";
break;
case 3:
CurrentDay = "Wednesday";
break;
case 4:
CurrentDay = "Thursday";
break;
case 5:
CurrentDay = "Friday";
break;
}
System.out.println();
System.out.println();

//ask for time in and time out for regular and overtime
//also ask if today is holiday
System.out.print("Enter Time In for " + CurrentDay + " : ");
System.out.print("Enter Time Out for " + CurrentDay + " : ");
System.out.print("Is today holiday? [y/n] : ");
System.out.print("Enter Time In for Over Time : ");
System.out.print("Enter Time Out for Over Time : ");

//split the hour and minute
String tin[] = timeIn.split(":");
String tout[] = timeOut.split(":");

//time calculation
hours += ( Double.parseDouble(tout[0]) - Double.parseDouble(tin[0]) ) >= 9 ? 8 : Double.parseDouble(tout[0]) - Double.parseDouble(tin[0]);
tmpTime = Double.parseDouble(tout[0]) - Double.parseDouble(tin[0]);
tmpHour = ( Double.parseDouble(tout[0]) - Double.parseDouble(tin[0]) ) >= 9 ? 8 : Double.parseDouble(tout[0]) - Double.parseDouble(tin[0]);

//minute late and under time calculation
if ( tmpTime <= 9 ) {
late += Double.parseDouble(tin[1]);
tmpLate = Double.parseDouble(tin[1]);
}

if ( Double.parseDouble(tout[0]) < 17 ) {
undertime += 60 - Double.parseDouble(tout[1]);
tmpUndertime = 60 - Double.parseDouble(tout[1]);
}

//salary rate calculation
if ( holiday.equalsIgnoreCase("y") ) {
tmpSal = (emprate / 8) * 1.1;
tmpTime = (( (tmpHour*60) - (tmpLate + tmpUndertime) ) / 60);
hours -= tmpTime;
overHours += (( (tmpHour*60) - (tmpLate + tmpUndertime) ) / 60);
overSal += tmpSal * tmpTime;
} else {
tmpSal = emprate / 8;
tmpTime = (( (tmpHour*60) - (tmpLate + tmpUndertime) ) / 60);
salary += tmpSal * tmpTime;
//System.out.println(salary + " = " + tmpSal * tmpHour + " " + tmpLate + " " + tmpUndertime + " ");
}

//if there is overtime
if ( !( overtin.equalsIgnoreCase("00:00") || overtin.equalsIgnoreCase("") ) ) {
String ovin[] = overtin.split(":");
String ovout[] = overtout.split(":");

double tmp1 = 0;
double tmp2 = 0;
double minTmp = 0;

tmp1 = Double.parseDouble(ovin[0]) <= 17 ? 17 : Double.parseDouble(ovin[0]);
tmp2 = Double.parseDouble(ovout[0]) <= 20 ? 20 : 20;
minTmp = Double.parseDouble(ovin[1]) + Double.parseDouble(ovout[1]);

if ( (tmp2 - tmp1) <= 3 && tmp2 - tmp1 > 0) {
overMinutes = ((tmp2 - tmp1) * 60) - minTmp;
overHours += overMinutes/60;
double overTmp = overMinutes/60;
double overRate = (emprate / 8) * 1.1;
overSal += overRate * overTmp;
}
}

ctr2++;
}

System.out.print("Enter Date Covered : " );
minutes += (hours*60) - (late + undertime);
totalHours = minutes/60;

System.out.println();

System.out.println();
System.out.println("-------------------------------------------");
System.out.println("Name of the Employee : " + empname);
System.out.println("Employee Code : " + empcode);
System.out.println("Employee Level : " +emplevel);
System.out.println("Employee Rate : " + emprate);
System.out.println("-------------------------------------------");
System.out.println("Date Covered : " + covered);
System.out.println("Total Hours : " + totalHours);
System.out.println("Overtime : " + overHours);
System.out.println("Regular Income : " + salary );
System.out.println("Overtime Income : " + overSal );
System.out.println("Gross Income : " + (salary + overSal) );
System.out.println("Deductions");

//tax and gsis deduction computation
double tax = ((salary + overSal) * .10);
double gsis = 0;

if( emplevel.equalsIgnoreCase("Level 1") ) {
gsis = (salary + overSal) * .01;
} else if ( emplevel.equalsIgnoreCase("Level 2") ) {
gsis = (salary + overSal) * .015;
} else {
gsis = (salary + overSal) * 0.02;
}

System.out.println(" * Tax : " + tax);
System.out.println(" * GSIS : " + gsis);
System.out.println("Net Income : " + (( (salary + overSal) - (tax + gsis) ) + 500) );

System.out.println("-------------------------------------------");

notExists = false;

} else {
System.out.println("-------------------Record Doesn't Exists---------------------------");
notExists = true;
}

}

}

}
```

Note : I didn't put so much explanation into the codes because I expected that you have an Intermediate knowledge in java programming. My main goal is to give you the problem and you try to create your own. I just showed on how I did it

PS: If you can see I didn't put so much validations and I didn't follow the currency format in my display report. I'm challenging you to experiment and do it

PSS: This is a basic one so please no flamming...

PSSS: I have so many variables that I didn't actually use.. try to clean the code

here's the complete project file feel free to download it for reference use.

Good Luck and Happy Coding Guys!

Edited by Roger, 03 February 2013 - 09:54 AM.

• 4
Life has no CTRL+Z
Never Forget To HIT "LIKE" If I Helped

### #2 wim DC

wim DC

Roar

• Expert Member
• 2681 posts
• Programming Language:Java, JavaScript, PL/SQL
• Learning:Python

Posted 29 May 2012 - 04:39 AM

You should at least follow the naming conventions, by which I'm not looking at indentation, spaces, or enters. But classes without a capital letter and variables starting with one is a 'no no'.

Always Close Streams

Closing a stream when it's no longer needed is very important — so important that CopyBytes uses a finally block to guarantee that both streams will be closed even if an error occurs. This practice helps avoid serious resource leaks.
One possible error is that CopyBytes was unable to open one or both files. When that happens, the stream variable corresponding to the file never changes from its initial null value. That's why CopyBytes makes sure that each stream variable contains an object reference before invoking close.

src: http://docs.oracle.c...ytestreams.html
• 0

### #3 papabear

papabear

CC Devotee

• Senior Member
• 472 posts
• Location:DarkSide

Posted 29 May 2012 - 03:08 PM

You should at least follow the naming conventions, by which I'm not looking at indentation, spaces, or enters. But classes without a capital letter and variables starting with one is a 'no no'.

src: http://docs.oracle.c...ytestreams.html

First of all I would like to thank you for at least reading my post and even commenting into it

for my variables I uses variables that descriptive so I can easily remember what is it.. it's just that when I pasted the code in the forum it gives no indention

I don't want to have a typo and Payroll is only a one word so why would I have to care about making P capitalize where I might typo it in p when compiling? Because I uses notepad and cmd in creating this and java is a strictly case sensitive. I only apply the capitalize when I have 2 words in my class name like PayrollSystem. If you can notice into some of my variables I have overHours, overMinutes, tmpSal, overSal etc... which I capitalize one word

I closes everything in my full source code, which I didn't put everything in here, because this problem is something controversial because it's a programming exam that some people are researching for. If you will notice at the end of the tutorial I'm challenging them to do the rest of the things that they think should be there

my purpose is to just give a sample code and give them the problem so they can try to create their own..
• 0
Life has no CTRL+Z
Never Forget To HIT "LIKE" If I Helped

### #4 Sinipull

Sinipull

• Validating
• 384 posts

Posted 30 May 2012 - 02:49 PM

I don't want to have a typo and Payroll is only a one word so why would I have to care about making P capitalize where I might typo it in p when compiling? Because I uses notepad and cmd in creating this and java is a strictly case sensitive. I only apply the capitalize when I have 2 words in my class name like PayrollSystem. If you can notice into some of my variables I have overHours, overMinutes, tmpSal, overSal etc... which I capitalize one word

Bad idea. Class names are always UpperCase. That helps programmers to identify if it's a class name or variable/field name. right now there's no way to tell, if "payroll" is a field/variable or a class. It's not really a matter of discussion or opinion, it's just something that is accepted in Java community.
• 0
.

### #5 papabear

papabear

CC Devotee

• Senior Member
• 472 posts
• Location:DarkSide

Posted 30 May 2012 - 02:58 PM

Bad idea. Class names are always UpperCase. That helps programmers to identify if it's a class name or variable/field name. right now there's no way to tell, if "payroll" is a field/variable or a class. It's not really a matter of discussion or opinion, it's just something that is accepted in Java community.

yes there is a way of telling that it is indeed and clearly a class.

`public class payroll`

it is a procedural programming style, please read everything before commenting, thank you so much and good luck
I have different style in programming and so the other does please look closely that it's the only class there haha
• 0
Life has no CTRL+Z
Never Forget To HIT "LIKE" If I Helped

### #6 Sinipull

Sinipull

• Validating
• 384 posts

Posted 30 May 2012 - 03:07 PM

You don't understand. There's no procedural programming style in Java. Java is fully object oriented.
If you are distributing your code to others under the title of "Tutorial", then it's your responsibility to make it at least follow the Java convention.

Classes should be written UpperCamelCase
Methods/Variables/Fields should be written lowerCamelCase
• 1
.

### #7 papabear

papabear

CC Devotee

• Senior Member
• 472 posts
• Location:DarkSide

Posted 30 May 2012 - 03:15 PM

You don't understand. There's no procedural programming style in Java. Java is fully object oriented.
If you are distributing your code to others under the title of "Tutorial", then it's your responsibility to make it at least follow the Java convention.

Classes should be written UpperCamelCase
Methods/Variables/Fields should be written lowerCamelCase

Yes I understand >.< and there is a procedural style in java , and that is the very basic. what I did in this tutorial is to give readers some problem and give them some insights on how I did it without giving them a full code. I'm comfortable in that way
I'm only using notepad and cmd when I wrote this so I don't have a good syntax suggester and variable finder. So I applied lowercase in the class so I can't have a typo when compiling it in "javac payroll.java" Don't worry I'm using a capitalize classes when I'm using netbeans and jcreator so you have nothing to worry about "people's rule" in programming
• 0
Life has no CTRL+Z
Never Forget To HIT "LIKE" If I Helped

### #8 lethalwire

lethalwire

while(false){ ... }

• Senior Member
• 766 posts
• Programming Language:C, Java, PHP, JavaScript
• Learning:PHP

Posted 01 June 2012 - 03:05 PM

Yes I understand >.< and there is a procedural style in java , and that is the very basic. what I did in this tutorial is to give readers some problem and give them some insights on how I did it without giving them a full code. I'm comfortable in that way
I'm only using notepad and cmd when I wrote this so I don't have a good syntax suggester and variable finder. So I applied lowercase in the class so I can't have a typo when compiling it in "javac payroll.java" Don't worry I'm using a capitalize classes when I'm using netbeans and jcreator so you have nothing to worry about "people's rule" in programming

If you're writing a tutorial for possibly thousands of people to read, wouldn't you want all of your code to follow the most basic standards though?
Even if it is a basic tutorial, it could potentially throw a lot of newcomers off track. Then when they post a topic under CC's "Java Help" section the first thing DC and Sinipull are gonna do is bash on the newcomer for not capitalizing their class names and not using camel case. =)

No hard feelings DC and Sinipull.

Now, you don't want these guys bashing on the newcomers do you?

Just something to keep in mind.
• 0

### #9 papabear

papabear

CC Devotee

• Senior Member
• 472 posts
• Location:DarkSide

Posted 01 June 2012 - 04:16 PM

If you're writing a tutorial for possibly thousands of people to read, wouldn't you want all of your code to follow the most basic standards though?
Even if it is a basic tutorial, it could potentially throw a lot of newcomers off track. Then when they post a topic under CC's "Java Help" section the first thing DC and Sinipull are gonna do is bash on the newcomer for not capitalizing their class names and not using camel case. =)

No hard feelings DC and Sinipull.

Now, you don't want these guys bashing on the newcomers do you?

Just something to keep in mind.

yes I'll keep those on mind and will apply case rule on the next tutorials
I'm in a rush when doing this so I left it small case
thank you
• 0
Life has no CTRL+Z
Never Forget To HIT "LIKE" If I Helped

### #10 Ziegfred

Ziegfred

CC Lurker

• New Member
• 3 posts
• Learning:Java, C++

Posted 01 October 2012 - 05:19 AM

can anyone post a payroll where you can put an Employee? and does have a menu? with search ? list of employees?
• 0

### #11 papabear

papabear

CC Devotee

• Senior Member
• 472 posts
• Location:DarkSide

Posted 01 October 2012 - 06:14 AM

can anyone post a payroll where you can put an Employee? and does have a menu? with search ? list of employees?

you are asking for a complete system? I'm sorry but we can't give you one.. but we can help you if you want.. but please start the project first and show us where you got stuck
• 0
Life has no CTRL+Z
Never Forget To HIT "LIKE" If I Helped

### #12 Ziegfred

Ziegfred

CC Lurker

• New Member
• 3 posts
• Learning:Java, C++

Posted 01 October 2012 - 06:17 AM

im only helping my girlfriend for her project. im not good at this

been looking for many sites for this Payroll thing
• 0

### Also tagged with one or more of these keywords: simple payroll system, how to make payroll system, payroll system, DOS BASE PAYROLL, payroll in java, making payroll in java

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download