VB – Kerry Sales Solution
Kerry Sales Solution
Open the Kerry Sales Solution (Kerry Sales Solution.sln) file contained in the VB2010Chap11Kerry Sales Solution folder. If necessary, open the designer window. Double-click Payroll.vb in the Solution Explorer window
Create a base class named Commission. The class should contain two Public properties: a string property named SalesId and a Double property named Sales. Include a default constructo and a parameterized constructor in the class. Also include a GetCommission using eh following formula: sales* .05
Create a derived class named BonusCommission. The Derived class’s GetComission method should calculate the commission as follows: sales* .05 + (sales – 2500) * .01. Be sure to include a default constructor and a parameterized constructor in the derived class.
Open the form’s Clode Editor window and locate the btnCalc control’s Click event procedure. Finish coding the procedure, using the comments as a guide.
Save the solution and then start and test the application. Close the form’s Code Editor window and the Payroll.vb window, and then close the solution.