Giter Site home page Giter Site logo

employee-manager's Introduction

Employee-Manager

Employee manager program

Output example

image

Summary

They ask us to create a program that manages employees.

Employees are defined by having:

• Name

• Age

• Salary

We will also have a constant called PLUS, which will have a value of €300

We have two types of employees: delivery driver and salesperson.

The commercial, apart from the previous attributes, has one more called commission (double).

The delivery person, apart from the employee attributes, has another one called zone (String).

Create your constructors, getters and setters and toString (think about how to take advantage of inheritance).

Objects of the Employee type (the parent class) cannot be created, but their daughters can.

The classes will have a method called plus, which depending on each class will have a different implementation. This bonus basically increases the employee's salary.

• In commercial, if you are over 30 years old and charge a commission of more than 200 euros, the bonus will be applied.

• As a delivery person, if he is under 25 and delivers in “zone 3”, he will receive the bonus.

You can have it return a boolean or not return anything, I'll leave it up to you.

Create an executable class where you create different employees and apply the plus to check that it works.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.