Skip to content

Commit cd00c88

Browse files
committed
Java Employee
0 parents  commit cd00c88

File tree

11 files changed

+222
-0
lines changed

11 files changed

+222
-0
lines changed

Employee.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
public class Employee {
2+
private String name;
3+
private String email;
4+
private String phone;
5+
private String address;
6+
private String TFN;
7+
private String type;
8+
private int hours;
9+
private double payPerHour;
10+
private double income;
11+
private double rate;
12+
private double net;
13+
private double deduction;
14+
private double superannuation;
15+
private double superRate;
16+
private Employer employer;
17+
18+
19+
}

Employees.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import java.util.ArrayList;
2+
3+
public class Employees {
4+
5+
private ArrayList<Employee> employees;
6+
7+
8+
9+
10+
}

Employer.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
public class Employer {
2+
3+
private String name;
4+
private String email;
5+
private String password;
6+
private Employees employees;
7+
private STP stp;
8+
9+
10+
}

Employers.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import java.util.ArrayList;
2+
3+
public class Employers {
4+
5+
private ArrayList<Employer> employers;
6+
7+
8+
}

In.java

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
import java.util.*;
2+
3+
/**
4+
* This class provides static methods for easily reading
5+
* input from STDIN:
6+
*
7+
* nextLine reads a string
8+
* nextInt reads an integer
9+
* nextDouble reads a double
10+
* nextChar reads a character
11+
*
12+
* All methods consume the end-of-line character.
13+
*/
14+
public class In {
15+
/**
16+
* A singleton instance of Scanner used for reading all input
17+
* from STDIN.
18+
*/
19+
private static final Scanner scanner = new Scanner(System.in);
20+
21+
/**
22+
* The constructor is private because no instances of this
23+
* class should be created. All methods are static and can
24+
* be directly invoked on the class itself.
25+
*/
26+
private In() {}
27+
28+
/**
29+
* Read the next line of text.
30+
*
31+
* @return the line as a String
32+
*/
33+
public static String nextLine() {
34+
return scanner.nextLine();
35+
}
36+
37+
/**
38+
* Read the next line as an integer.
39+
*
40+
* @return the integer that was read
41+
*/
42+
public static int nextInt() {
43+
int value = scanner.nextInt();
44+
scanner.nextLine(); // read the "\n" as well
45+
return value;
46+
}
47+
48+
/**
49+
* Read the next line as a double.
50+
*
51+
* @return the double that was read
52+
*/
53+
public static double nextDouble() {
54+
double value = scanner.nextDouble();
55+
scanner.nextLine();
56+
return value;
57+
}
58+
59+
/**
60+
* Read the first character of the next line of text.
61+
*
62+
* @return the character that was read
63+
*/
64+
public static char nextChar() {
65+
return scanner.nextLine().charAt(0);
66+
}
67+
}

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Java Employee
2+
# 加微信 powcoder
3+
4+
# [代做各类CS相关课程和程序语言](https://powcoder.com/)
5+
6+
[成功案例](https://powcoder.com/tag/成功案例/)
7+
8+
[java代写](https://powcoder.com/tag/java/) [c/c++代写](https://powcoder.com/tag/c/) [python代写](https://powcoder.com/tag/python/) [drracket代写](https://powcoder.com/tag/drracket/) [MIPS汇编代写](https://powcoder.com/tag/MIPS/) [matlab代写](https://powcoder.com/tag/matlab/) [R语言代写](https://powcoder.com/tag/r/) [javascript代写](https://powcoder.com/tag/javascript/)
9+
10+
[prolog代写](https://powcoder.com/tag/prolog/) [haskell代写](https://powcoder.com/tag/haskell/) [processing代写](https://powcoder.com/tag/processing/) [ruby代写](https://powcoder.com/tag/ruby/) [scheme代写](https://powcoder.com/tag/drracket/) [ocaml代写](https://powcoder.com/tag/ocaml/) [lisp代写](https://powcoder.com/tag/lisp/)
11+
12+
- [数据结构算法 data structure algorithm 代写](https://powcoder.com/category/data-structure-algorithm/)
13+
- [计算机网络 套接字编程 computer network socket programming 代写](https://powcoder.com/category/network-socket/)
14+
- [数据库 DB Database SQL 代写](https://powcoder.com/category/database-db-sql/)
15+
- [机器学习 machine learning 代写](https://powcoder.com/category/machine-learning/)
16+
- [编译器原理 Compiler 代写](https://powcoder.com/category/compiler/)
17+
- [操作系统OS(Operating System) 代写](https://powcoder.com/category/操作系统osoperating-system/)
18+
- [计算机图形学 Computer Graphics opengl webgl 代写](https://powcoder.com/category/computer-graphics-opengl-webgl/)
19+
- [人工智能 AI Artificial Intelligence 代写](https://powcoder.com/category/人工智能-ai-artificial-intelligence/)
20+
- [大数据 Hadoop Map Reduce Spark HBase 代写](https://powcoder.com/category/hadoop-map-reduce-spark-hbase/)
21+
- [系统编程 System programming 代写](https://powcoder.com/category/sys-programming/)
22+
- [网页应用 Web Application 代写](https://powcoder.com/category/web/)
23+
- [自然语言处理 NLP natural language processing 代写](https://powcoder.com/category/nlp/)
24+
- [计算机体系结构 Computer Architecture 代写](https://powcoder.com/category/computer-architecture/)
25+
- [计算机安全密码学computer security cryptography 代写](https://powcoder.com/category/computer-security/)
26+
- [计算机理论 Computation Theory 代写](https://powcoder.com/category/computation-theory/)
27+
- [计算机视觉(Compute Vision) 代写](https://powcoder.com/category/计算机视觉compute-vision/)
28+

Report.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
public class Report {
2+
3+
private String name;
4+
private double wages;
5+
private double tax;
6+
private double net;
7+
private double superannuation;
8+
9+
10+
}

STP.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import java.util.ArrayList;
2+
import java.util.Date;
3+
4+
public class STP {
5+
private double totalWages;
6+
private double totalTax;
7+
private double totalNet;
8+
private double totalSuper;
9+
private double bas;
10+
private Date date;
11+
private Employees employees;
12+
private ArrayList<Report> reports;
13+
private STPLog stpLog;
14+
private Employer employer;
15+
16+
17+
}

STPLog.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import java.util.ArrayList;
2+
3+
public class STPLog {
4+
private ArrayList<STP> stpLog;
5+
6+
7+
}

Session.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
public class Session {
2+
private Employers employers;
3+
4+
5+
}

0 commit comments

Comments
 (0)