onelson

DRILL (DA 400) – How can you improve the salesTax custom function?

Discussion created by onelson on Apr 10, 2017

The Java code for the salesTax function has the sales tax rates hard-coded into the function. If one of the rates changes, the entire function will have to be rewritten and recompiled.

 

How could this function be rewritten to avoid this? How else might you improve this example function for Big Office Supply Company?

Outcomes