Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

For Kerry Sales Solutions create a base class named Commission. The class should

ID: 3652296 • Letter: F

Question

For Kerry Sales Solutions create a base class named Commission. The class should contain two public propoerties, a string named SalesId and a double property calledSales. Include a default constructor and a parametorized constructor in the class. Include a GetCommission method(function) that calculates a salesperson's commission using the following formula: sales * .05. then create a derived class named bonusCommission. The 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 dervied class.

Explanation / Answer

public class Commission{ String SalesId; double calledSales; public static void Commission(){ SalesId=null; calledSales=0; } public void setKerrysales(double sales,String KerrysalesId){ SalesId=KerrysalesId; calledSales=sales; } public double GetCommission(double sales){ double commission; commission=sales * .05; return commission; } } public class bonusCommission{ String SalesId; double calledSales; public static void Commission(){ SalesId=null; calledSales=0; } public void setKerrysales(double sales,String KerrysalesId){ SalesId=KerrysalesId; calledSales=sales; } public double GetCommission(double sales){ double commission; commission=ales*.05+(sales-2500)*.01; return commission; } }

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote