Calculating price after sales commission and discount
Just a quick note: Don't use floating point variables where you may need exact results:


Effective Java, 2nd Edition, Item 48: Avoid float and double if exact answers are required
Why not use Double or Float to represent currency?


Fortunately Java has BigDecimal.