PosSystem:购物pos系统

时间:2021-07-04 21:04:21
【文件属性】:
文件名称:PosSystem:购物pos系统
文件大小:154KB
文件格式:ZIP
更新时间:2021-07-04 21:04:21
Java com.water.pos.market.PosSystem shopping pos system 需求一: 商店里进行购物结算时会使用收银机(POS)系统,这台收银机会在结算时根据客户的购物车(Cart)中的商品(Item)和商店正在进行的优惠活动(Promotion)进行结算和打印购物清单。 已知该商店正在对部分商品进行“指定商品打折”、“第二件商品半价”等优惠活动,如遇到某件商品存在多种优惠活动的情况时,所有优惠活动同时适用。例如商品A原价100,现在打8折,且第二件半价,那么购买两件的总价为120; 现在已知 1st:有商品文件列表 itemlist.txt,内容如下: ITEM000001:40 ITEM000003:50 ITEM000005:60 ITEM000001代表商品的条形码,对于商品来说条形码是唯一的,40代表该商品的单价; 2nd:“第二件商品半价”优惠列表
【文件预览】:
PosSystem-master
----data()
--------discount_promotion.txt(28B)
--------full_cash_back_promotion.txt(68B)
--------itemlist.txt(43B)
--------second_half_price_promotion.txt(22B)
--------cart.txt(88B)
----test()
--------com()
--------.idea()
----CppDemo()
--------cd1.jpg(42KB)
--------cd2.jpg(42KB)
--------item_db()
--------PosSystem1.cpp(10KB)
--------cd3.jpg(29KB)
--------PosSystem3.cpp(10KB)
--------PosSystem2.cpp(10KB)
----PosSystem.iml(6KB)
----src()
--------com()
----.idea()
--------uiDesigner.xml(9KB)
--------scopes()
--------misc.xml(2KB)
--------vcs.xml(216B)
--------.name(9B)
--------copyright()
--------modules.xml(258B)
--------encodings.xml(164B)
--------compiler.xml(709B)
--------workspace.xml(119KB)
--------libraries()
----.gitignore(272B)
----README.md(2KB)
----build.gradle(576B)

网友评论