Simple Java project created to practice composition, enumerations (enum), and basic Object-Oriented Programming principles.
src/
├── application/
│ └── Program.java
├── entities/
│ ├── Worker.java
│ ├── Department.java
│ └── HourContract.java
└── entities/enums/
└── WorkerLevel.java
- Department registration
- Worker creation with level (enum)
- Association of multiple hourly contracts
- Monthly income calculation (base salary + contracts for the given month)
- Data input via standard console (Scanner)
Compile and run the program using the terminal:
javac application/Program.java
Or simply run it through IntelliJ IDEA or any Java IDE.
The program asks for:
- Department name
- Worker data (name, level, base salary)
- Number of contracts
- Contract date, value per hour, and duration
- Month and year to calculate income
And then displays:
- Worker name
- Department
- Income for the selected month
- Java 17+
- IntelliJ IDEA