|
From: Per W. <pw...@ia...> - 2002-11-25 16:17:22
|
Given the requirements and all, doesn't this sound very, very much like a school assignment? /Per W On Mon, 25 Nov 2002 Olu...@ao... wrote: > I need help solving this program. >=20 > Can anybody help?. >=20 > olu...@ao... >=20 > C++ PROGRAMMING >=20 > I want to write a program that will calculate and print Employee's payrol= l=20 > data >=20 > I want the program to: >=20 > 1. Store employee's First and Last name, date of birth (Date Object) and= the=20 > department code (an int). > 2. There 4 types of Employees > =B7 Hourly worker > =B7 Piece worker > =B7 Manager > =B7 Commission worker >=20 > A. HOURLY WORKER- they are paid by the hour with "time-and-a-half" for h= ours=20 > in excess of 30hours per week. >=20 > 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= =2E >=20 > C. MANAGER - gets a fixed wages per week. >=20 > D. COMMISSION WORKER - earns a fixed weekly base salary plus a fixed=20 > percentage of that person's gross sales for the week. >=20 > Assume the payroll is produced once per month. The program should calcul= ate=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. >=20 > REQUIREMENT >=20 > 1. Use a base class to define the same messages for the employee > 2. Use Inheritances and polymorphism to declare different data and funct= ions > 3. Validate the data > 4. // Please put in comment so that I can understand the solution. It i= s=20 > important for me to understand. >=20 > THANKS > Ol...@ao... >=20 >=20 |