mattmusc / salary

Salary assignment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Salary Assignment

The people that work in a Company have the following salary schema:

  • Sellers: monthly salary € 500.00 plus 10% monthly bonus of the amount sold that month
  • Technician: monthly salary € 1,400.00
  • Manager: monthly salary € 1,500.00 + 0.5% of the total salary of all managed members below him (at all levels)

Define the data structures and the algorithm that allow to compute the total salary of the company. With this structure, write a program to define the following company and compute the total salary for all the employees:

  • Vittorio is a seller, he sells items for € 15,000.00
  • Teresa is a technician
  • Mario is a manager of Vittorio and Teresa
  • Virna is a seller, she sells items for € 17,000.00
  • Maria is the CEO, manager of both Mario and Virna

How to run

mvn clean compile exec:java

About

Salary assignment


Languages

Language:Java 100.0%