Payroll module developed in Java that automates salary calculations for retail staff by processing bonuses and legal deductions.
The system manages payroll logic based on three specific employment categories:
- Base Salary: $15,890.
- Bonus: 10% additional payment applied to the base.
- Fixed Salary: Monthly processing of $25,630.89.
- Gross Salary: $35,560.20.
- Deduction: 11% automatic pension contribution.
- Flow Control: Implementation of nested
if-elsestructures for category selection and input validation. - Monetary Precision: Use of floating-point data types for accurate currency and percentage handling.
- Console Interface: Dynamic data entry processing using the
Scannerclass.
- src/
- main/
- java/
- com/mycompany/java/payroll/logic/
- JavaPayrollLogic.java
- com/mycompany/java/payroll/logic/
- java/
- main/
- JDK 8 or higher.
- Compatible IDE (NetBeans recommended) or terminal.