Asked by Elaine
Create the logic for a program that calls a method that computes the final price for a sales transaction. The program contains variables that hold the price of an item, the salesperson's commission expressed as a percentage, and the customer discount expressed as a percentage. Create a calculatePrice() method that determines the final price and returns the value to the calling method. The calculatePrice() method requires three arguments: product price, salesperson commission rate, and customer discount rate. A product's final price is the original price plus the commission amount minus the discount amount. The customer discount is take as a percentage of the total price after the salesperson commission has been added to the original price.
I don't know where to start. Any help would be appreciated.
I don't know where to start. Any help would be appreciated.
Answers
Answered by
chad
yes I would like to be programming right no
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.