Assignment 2:

The aim of this assignment is to demonstrate the use of class, subclass, inheritance, polymorphism and the reusability of classes.

Problem description

Consider a company that has many employees. The job titles of employees are Worker, Manager and Director. At the end of the year the company declares its best worker, manager and director based on some performance criteria. You have to write a program that takes information about the employees from the keyboard, finds the best worker, manager and director, and print their names on screen.

Assumption: mangers and directors are basically the same. Directors are involved in large projects and their performance is calculated differently from managers.

Use the following hints: