a. Create a class named Commission that includes three variables: a double sales
ID: 3639151 • Letter: A
Question
a. 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 figure by 100.0 before multiplying by the sales figure and displaying the commission. Supply the appropriate values for the variables, and write a main( ) method that tests each overloaded method.Explanation / Answer
http://www.chegg.com/homework-help/questions-and-answers/-create-class-named-commission-includes-variables-double-sales-figure-double-commission-ra-q1208835 and http://forums.whirlpool.net.au/archive/261448
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.