6.11(金融应用:计算酬金)编写一个方法,利用编程练习题5.39中的方案计算酬金。方法头如下所示: public static double computeCommission(double salesAmount) 编写一个测试程序,显示下面表格: 销售总额 酬金 10000 900.0 15000 1500.0 … 95000 11100.0 100000 11700.0 6.11(Financial application: compute commissions)Write a method that computes the commission, using the scheme in Programming Exercise 5.39. The header of the method is as follows: public static double computeCommission(double salesAmount) Write a test program that displays the following table: Sales Amount Commission 10000 900.0 15000 1500.0 … 95000 11100.0 100000 11700.0
Sales Amount Commission
-----------------------------------10000900.0150001500.0200002100.0250002700.0300003300.0350003900.0400004500.0450005100.0500005700.0550006300.0600006900.0650007500.0700008100.0750008700.0800009300.0850009900.09000010500.09500011100.010000011700.0
Process finished with exit code 0