ThoughtWorks Interview Question for Senior Software Development Engineers
- 0of 0 votes
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.- GUL MD ERSHAD November 05, 2017 in India
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.
1) 1 book at 12.49
2) 1 music CD at 14.99
3) 1 chocolate bar at 0.85
| Report Duplicate | Flag | PURGE
ThoughtWorks Senior Software Development Engineer Object Oriented Design
Interview Type: Written Test
Open Chat in New Window