Basic sales tax is applicable at a rate of 10% on all goods, except books, food, and medical products that are exempt. Import duty is an additional sales tax applicable on all imported goods at a rate of 5%, with no exemptions.
When I purchase items I receive a receipt which lists the name of all the items and their price (including tax), finishing with the total cost of the items, and the total amounts of sales taxes paid. The rounding rules for sales tax are that for a tax rate of n%, a shelf price of p contains (np/100 rounded up to the nearest 0.05) amount of sales tax.
Write an application that prints out the receipt details for these shopping baskets...
基本销售税适用于所有商品,但书籍、食品和医疗产品除外,税率为10%。进口税是适用于所有进口货物的附加销售税,税率为5%,不免税。
当我购买商品时,我收到一张收据,上面列出了所有商品的名称和它们的价格(包括税),包括商品的总成本和支付的销售税总额。销售税的四舍五入规则是税率为n%时,p的货架价包含(np/100四舍五入到最接近的0.05)销售金额税收。
写一个打印出购物篮收据详细信息的应用程序
2021-04-06 14:58:10
250KB
zip
1