POS_system:POS 系统 家庭作业 tw

上传者: 42128270 | 上传时间: 2022-11-29 18:53:25 | 文件大小: 17KB | 文件类型: ZIP
POS_system ###需求: 商店里进行购物结算时会使用收银机(POS)系统,这台收银机会在结算时根据客户的购物车(Cart)中的商品(Item)和商店正在进行的优惠活动(Promotion)进行结算和打印购物清单。 已知该商店正在对部分商品进行“指定商品打折”、“第二件商品半价”等优惠活动,如遇到某件商品存在多种优惠活动的情况时,所有优惠活动同时适用。例如商品A原价100,现在打8折,且第二件半价,那么购买两件的总价为120; 现在已知 1st:有商品文件列表 itemlist.txt,内容如下: ITEM000001:40 ITEM000003:50 ITEM000005:60 ITEM000001代表商品的条形码,对于商品来说条形码是唯一的,40代表该商品的单价; 2nd:“第二件商品半价”优惠列表 second_half_price_promotion.txt 内容如下:

文件下载

资源详情

[{"title":"( 20 个子文件 17KB ) POS_system:POS 系统 家庭作业 tw","children":[{"title":"POS_system-master","children":[{"title":"gradlew.bat <span style='color:#111;'> 2.35KB </span>","children":null,"spread":false},{"title":"gradlew <span style='color:#111;'> 4.96KB </span>","children":null,"spread":false},{"title":"gradle","children":[{"title":"wrapper","children":[{"title":"gradle-wrapper.properties <span style='color:#111;'> 230B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"src","children":[{"title":"test","children":[{"title":"java","children":[{"title":"com","children":[{"title":"tw","children":[{"title":"pos","children":[{"title":"ShoppingCartTest.java <span style='color:#111;'> 5.40KB </span>","children":null,"spread":false},{"title":"promotionRules","children":[{"title":"DiscountTest.java <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false},{"title":"SecondHalfTest.java <span style='color:#111;'> 1.23KB </span>","children":null,"spread":false},{"title":"ReduceXUponReachingYTest.java <span style='color:#111;'> 613B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"java","children":[{"title":"com","children":[{"title":"tw","children":[{"title":"pos","children":[{"title":"ProductItem.java <span style='color:#111;'> 647B </span>","children":null,"spread":false},{"title":"Promotable.java <span style='color:#111;'> 625B </span>","children":null,"spread":false},{"title":"ProductName.java <span style='color:#111;'> 250B </span>","children":null,"spread":false},{"title":"Product.java <span style='color:#111;'> 483B </span>","children":null,"spread":false},{"title":"ShoppingCart.java <span style='color:#111;'> 2.75KB </span>","children":null,"spread":false},{"title":"promotionRules","children":[{"title":"ReduceXUponReachingY.java <span style='color:#111;'> 429B </span>","children":null,"spread":false},{"title":"Discount.java <span style='color:#111;'> 650B </span>","children":null,"spread":false},{"title":"SecondHalf.java <span style='color:#111;'> 409B </span>","children":null,"spread":false},{"title":"Promotion.java <span style='color:#111;'> 92B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".gitignore <span style='color:#111;'> 1.23KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 2.37KB </span>","children":null,"spread":false},{"title":"settings.gradle <span style='color:#111;'> 644B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 546B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

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