Question: 2. Open the Kerry Sales Solution (Kerry Sales Solution.sln) file contained in the VB2015 Chap11Kerry Sales Solution folder. a. Open the Payroll.vb file. Create a
2. Open the Kerry Sales Solution (Kerry Sales Solution.sln) file contained in the VB2015\
Chap11\Kerry Sales Solution folder.
a. Open the Payroll.vb file. Create a base class named Bonus. The 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 GetBonus method (function) that calculates a salesperson’s bonus using the following formula: sales * 0.05.
b. Create a derived class named PremiumBonus. The derived class’s GetBonus method should calculate the bonus as follows: sales * 0.05 + (sales – 2500) * 0.01. Be sure to include a default constructor and a parameterized constructor in the derived class.
c. Complete the btnCalc_Click procedure, using the comments as a guide, and then test the application appropriately.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
