How do you create a class named commission that includes three variables: a doub
ID: 3584356 • Letter: H
Question
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.javaExplanation / 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.