How do you create a class named commission that includes


How do you create a class named commission that includes three variables: a double sales figure, a double commission rate, and an integer commission rate. Create two overloaded methods named computeCommission(). The first method takes two double arguments representing sales and rate, multiplies them, and then displays the results. The second method takes two arguments: a double sales figure and an integer commission rate. This method must divide the commission rate by 100.0 before multiplying by the sales figure and displaying the commission. Supply appropriate values for the variables and write a main() method that tests each overloaded method. Save the program as Commission.java

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: How do you create a class named commission that includes
Reference No:- TGS0569158

Expected delivery within 24 Hours