Create a class named Commission that includes three variables: a double sales fi
ID: 3648515 • Letter: C
Question
Create a class named Commission that includes three variables: a double sales figure, a double commission rate, and an int commission rate. Create two overloaded methods named computeCommission( ). The first method takes two double parameters representing sales and commission rate, multiplies them and then displays the results. The second method takes two parameters: double sales figure and an integer commission rate. It should first take the commission rate and create a decimal value by dividing it by 100.0 before multiplying by the sales figure and displaying the result. Supply 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
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.