|
From: <Olu...@ao...> - 2002-11-25 05:45:54
|
I need help solving this program. Can anybody help?. olu...@ao... C++ PROGRAMMING I want to write a program that will calculate and print Employee's payroll=20 data I want the program to: 1. Store employee's First and Last name, date of birth (Date Object) and th= e=20 department code (an int). 2. There 4 types of Employees =B7 Hourly worker =B7 Piece worker =B7 Manager =B7 Commission worker A. HOURLY WORKER- they are paid by the hour with "time-and-a-half" for hour= s=20 in excess of 30hours per week. B. PIECE WORKER - Is paid a fixed a fixed rate per item produced. For=20 simplicity, assume this person makes only one type of item; therefore the=20 program should display the number of items produced and the rate per item. C. MANAGER - gets a fixed wages per week. D. COMMISSION WORKER - earns a fixed weekly base salary plus a fixed=20 percentage of that person's gross sales for the week. Assume the payroll is produced once per month. The program should calculate= =20 the payroll for each employee (Polymorphically), and a $50 bonus to the=20 employee's payroll amount if this is the month in which the employee's=20 birthday occurs. REQUIREMENT 1. Use a base class to define the same messages for the employee 2. Use Inheritances and polymorphism to declare different data and function= s 3. Validate the data 4. // Please put in comment so that I can understand the solution. It is=20 important for me to understand. THANKS Ol...@ao... |