How to handin.
Points : 30
Weight : 3%
Due : Monday May 31, 2004 @ 11:00 PM
Note : Late assignments will be accepted only with the instructor's
pre-approval.
You are to create a namedPoint class to satisfy the requirements. DO NOT start from scratch, rather inherit from the point class that you wrote in assignment 4 and then add the new features.
A namedPoint is a point with the following additional features:
Use the test program found in $L/ptTest.cc to test your class.
There are many types of employees, some of which include :
You may use the following in your calculations :
Define and implement a class hierarchy to manage the described employees. Decide which functions should be virtual and which should be pure virtual.
Write a client program to test your classes. This program should create an employee of each type. After each employee is created, your program should call a function which records work for the employee. It then calls a function to calculate the gross and net pay for the employee and another to print the information for the employee. The parameters to these function should be a reference to a base class object so that run time polymorphism is used.
University of
Lethbridge Home Page