Object-Oriented Programming · Amazon · Medium
Design a small model that computes how much an employee costs the company in total. Represent each employee with an Employee type that carries, at minimum, baseSalary, location, title, and level. An employee's total cost is the sum of four components: Base salary, taken directly from the employee record. Tax, computed as a fixed percentage of the base salary. Benefits, found by looking up the composite key (level, title). Location adjustment, found by looking up the…