ThoughtWorks Company 2014 Campus Recruitment homework problem

Source: Internet
Author: User
Signature

Amount of ... Last night before going to bed on the internet to find this problem, feel the homework is not difficult, than I imagined simple.
5:30 up to give the child to nurse, the Fed is no sleep, the head only this problem, eager to problem:sales taxes

Basic sales tax is applicable at a rate of 10% in all goods, except books, food, and medical the products that
are exempt. Import duty is a 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 the "all" items and their price
(including tax), Finis Hing with the total cost of the items, and the total amounts of sales taxes
paid.  The rounding rules for sales tax are this for a tax rate of n%, a shelf price of P contains np/100
Nearest 0.05) amount of sales tax.

Write An application This prints out of the receipt details for this shopping baskets ...

Amount of ... I went to this year's TW school recruit, I did not think this year's problem is still this way ...

As a result of the confidentiality agreement, I deleted what I had written before ... Sorry ...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.