Open the Kerry Sales Solution (Kerry Sales Solution.sln) file contained in the VB2015 Chap11Kerry Sales Solution folder.

Question:

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.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: