DEV Community 👩‍💻👨‍💻

Adamfenwa
Adamfenwa

Posted on

Salary Calculator

This basic salary calculator task was intended to help extend my understanding of OOP(object oriented programming).

Image description

The calculations are very basic as the focus is on Classes, instances etc. I use class method "from_input" to assign values to each instances attributes and later call that with "Employee.from_input(Employee)" I also added several choice prompts to separate managers from employees who have different pay rates and overtime pay. As well as this I added two dictionaries to store employees and managers separately. In addition managers user ids are increased by 100 to easily differentiate between managers and employees at a glance. Managers will also need to enter the correct password to continue. You can choose the option to list both dictionaries.

https://github.com/Adamfenwa/Salary-calculator

In conclusion I think whilst i have made some good choices it could be much more efficiently planned out.

Top comments (0)

Rust language vs others

Stop by this week's meme thread!