Open the Kerry Sales Solution (Kerry Sales Solution.sln) fi le con- tained in the VB2010Chap11Kerry Sales Solution folder. If nec- essary, open the designer window. Double-click Payroll.vb in the Solution Explorer window.
Create a base class named Commission. Th e class should contain two Public properties: a String property named SalesId and a Double property named Sales. Include a default constructor and a parameterized constructor in the class. Also include a GetCommission method (function) that calculates a salesperson’s commission using the following formula: sales * .05.
Create a derived class named BonusCommission. Th e derived class’s GetCommission 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 Code Editor window and locate the btnCalc con- trol’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.
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference
and should not be submitted as is. We are not held liable for any misuse of the solutions.
Please see the frequently asked questions page
for further questions and inquiries.
Kindly complete the form.
Please provide a valid email address and we will get back to you within 24 hours.
Payment is through PayPal, Buy me a Coffee
or Cryptocurrency.
We are a nonprofit organization however we need funds to keep this organization operating
and to be able to complete our research and development projects.