1. Create the Employee example in this lesson.

2. Implement a virtual function CalcPay(), they should work as follows:

• In the Commission class it should return the base amount +(salesAmount * commRate)

• In the Salary class, if the pay grade is 1 just return the base pay. If the pay grade is 2 return the base pay + (base pay * .19) if the base pay is 3, return the base pay + (base pay * .23)

3. Create an Employee object a Salary object and a commission object to illustrate the polymorphic behavior of the CalcPay() class. Output the results to the screen.

I have done my share of the coding however.. I am suppose to make it in Visual c++ 2010... im not really sure how to use the software.

class comssion { private: long int base,sales;int rate public: int clac() { cin>>base>>sales>>rate; return(base+(sales*rate)); } }c; class salary { long int base; int grade; public: int grade() { cin>>grade; cin>>base; if(grade==1) return(base); else if(grade==2) return(base+(base*.13)); else if(grade==2) return(base+(base*.23)); } }s; class employee { public: void calcpay() { long int a=c.calc(); long int b=s.grade(); } }e; void main() { e.calcpay(); }