销售税面试题java实现

上传者: daxiang12092205 | 上传时间: 2019-12-21 19:38:18 | 文件大小: 2.87MB | 文件类型: zip
销售税问题 基本销售税对所有商品征收,税率是10%,但是书籍、食品和药品可以免征。 进口税是向所有进口商品征收的额外的税,税率5%,没有进口商品可以免征进口税。 当一个顾客采购物品时,他会收到一个收据,上面列出所有物品的总价,以及全部应付的税费。 税金需要上舍入到5分(0.05元)。比如,3.14应该上舍入成3.15, 2.48应该上舍入成2.50, 3.01上舍入成3.05。 需求: 需要你实现计算出一份订单中所有物品的总税金和总价的功能。. 1 请实现Program.cs的calculateResult()方法。 2 请创建需要的类来实现这个功能。你的实现应该符合面向对象设计的原则。 3 你的代码必须通过全部测试用例。 测试用例已经包含在文档中,请不要修改。 4 编程时请留意代码的可扩展性。业务要求可能会有改变,比如免税的商品品种可能增加, 或者有新的税种。我们希望你的实现对已有代码做尽可能小的改变就能支持这些扩展。 2. case1.xml : 3. case2.xml: 4. case3.xml:

文件下载

资源详情

[{"title":"( 55 个子文件 2.87MB ) 销售税面试题java实现","children":[{"title":"DemoInterview2","children":[{"title":".project <span style='color:#111;'> 390B </span>","children":null,"spread":false},{"title":"activation-1.1.jar <span style='color:#111;'> 61.51KB </span>","children":null,"spread":false},{"title":"mail.jar <span style='color:#111;'> 508.79KB </span>","children":null,"spread":false},{"title":"dom4j-1.6.1.jar <span style='color:#111;'> 306.54KB </span>","children":null,"spread":false},{"title":"com","children":[{"title":"xy6","children":[{"title":"interview","children":[{"title":"ProductForm.java <span style='color:#111;'> 2.14KB </span>","children":null,"spread":false},{"title":"Program.class <span style='color:#111;'> 2.15KB </span>","children":null,"spread":false},{"title":"ProductForm.class <span style='color:#111;'> 2.78KB </span>","children":null,"spread":false},{"title":"ProductDAO.java <span style='color:#111;'> 3.19KB </span>","children":null,"spread":false},{"title":"ProductService.class <span style='color:#111;'> 3.38KB </span>","children":null,"spread":false},{"title":"ProductResultForm.java <span style='color:#111;'> 1.00KB </span>","children":null,"spread":false},{"title":"ProductResultForm.class <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false},{"title":"util","children":[{"title":"ProductConstants.java <span style='color:#111;'> 340B </span>","children":null,"spread":false},{"title":"ProductUtil.java <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"StringUtils.class <span style='color:#111;'> 29.46KB </span>","children":null,"spread":false},{"title":"DefinePatternLayout.java <span style='color:#111;'> 420B </span>","children":null,"spread":false},{"title":"ProductConstants.class <span style='color:#111;'> 575B </span>","children":null,"spread":false},{"title":"ProductUtil.class <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false},{"title":"StringUtils.java <span style='color:#111;'> 54.04KB </span>","children":null,"spread":false},{"title":"ProductException.java <span style='color:#111;'> 378B </span>","children":null,"spread":false},{"title":"DefinePatternLayout.class <span style='color:#111;'> 469B </span>","children":null,"spread":false},{"title":"ProductFreeTaxTypeUtil.java <span style='color:#111;'> 695B </span>","children":null,"spread":false},{"title":"ProductException.class <span style='color:#111;'> 722B </span>","children":null,"spread":false},{"title":"ProductFreeTaxTypeUtil.class <span style='color:#111;'> 1012B </span>","children":null,"spread":false}],"spread":false},{"title":"config","children":[{"title":"AllLog.log <span style='color:#111;'> 14.05KB </span>","children":null,"spread":false},{"title":"log4j.properties <span style='color:#111;'> 2.49KB </span>","children":null,"spread":false}],"spread":false},{"title":"Program.java <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false},{"title":"ProductDAO.class <span style='color:#111;'> 3.86KB </span>","children":null,"spread":false},{"title":"data","children":[{"title":"case1.xml <span style='color:#111;'> 438B </span>","children":null,"spread":false},{"title":"需求.jpg <span style='color:#111;'> 186.18KB </span>","children":null,"spread":false},{"title":"freetaxtype.xml <span style='color:#111;'> 133B </span>","children":null,"spread":false},{"title":"设计方案.txt <span style='color:#111;'> 468B </span>","children":null,"spread":false},{"title":"case3.xml <span style='color:#111;'> 567B </span>","children":null,"spread":false},{"title":"readme.txt <span style='color:#111;'> 2.14KB </span>","children":null,"spread":false},{"title":"case2.xml <span style='color:#111;'> 356B </span>","children":null,"spread":false}],"spread":false},{"title":"IProductService.class <span style='color:#111;'> 878B </span>","children":null,"spread":false},{"title":"IProductService.java <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false},{"title":"ProductService.java <span style='color:#111;'> 3.54KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"test","children":[{"title":"com","children":[{"title":"xy6","children":[{"title":"interview","children":[{"title":"TestProductDAO.class <span style='color:#111;'> 4.22KB </span>","children":null,"spread":false},{"title":"TestProductFormHelper.class <span style='color:#111;'> 3.96KB </span>","children":null,"spread":false},{"title":"TestProductService.class <span style='color:#111;'> 7.92KB </span>","children":null,"spread":false},{"title":"util","children":[{"title":"TestProductFreeTaxTypeUtil.class <span style='color:#111;'> 2.03KB </span>","children":null,"spread":false},{"title":"TestProductUtil.java <span style='color:#111;'> 2.44KB </span>","children":null,"spread":false},{"title":"TestProductUtil.class <span style='color:#111;'> 2.67KB </span>","children":null,"spread":false},{"title":"TestProductConstants.java <span style='color:#111;'> 1.67KB </span>","children":null,"spread":false},{"title":"TestProductFreeTaxTypeUtil.java <span style='color:#111;'> 1.76KB </span>","children":null,"spread":false},{"title":"TestProductConstants.class <span style='color:#111;'> 2.09KB </span>","children":null,"spread":false}],"spread":true},{"title":"TestRunning.class <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"TestProductService.java <span style='color:#111;'> 9.46KB </span>","children":null,"spread":false},{"title":"TestProductDAO.java <span style='color:#111;'> 3.92KB </span>","children":null,"spread":false},{"title":"TestRunning.java <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"TestProductFormHelper.java <span style='color:#111;'> 5.22KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"log4j-1.2.15.jar <span style='color:#111;'> 382.65KB </span>","children":null,"spread":false},{"title":"junit4.4.jar <span style='color:#111;'> 114.06KB </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 540B </span>","children":null,"spread":false},{"title":"ojdbc14.jar <span style='color:#111;'> 1.47MB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • CugWahaha :
    没用上,打开全是乱码
    2015-11-12
  • 「已注销」 :
    很好,很强大!
    2015-08-17
  • zhangzhi0861 :
    还不错,感谢分享。
    2015-07-09
  • sarahmyway :
    注释是乱码……
    2014-10-23

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明