Pinned Repositories
Codetest_Shopping-Receipt
Objective Write a program to print receipt for a shopping cart including sales tax. Customers shop from different states of US, and sales tax is applied based on location and product category. Sales tax = roundup(price * quantity * sales tax rate) Certain product categories are exempt from sales tax (means tax will be 0), and sales tax amount should be rounded up to the nearest 0.05 (e.g. 1.13->1.15, 1.16->1.20, 1.151->1.20) The interactive UI is not required, at minimum you can implement code method and use parameters as input. or read input value from file. Input The input of the program includes: product name, price, quantity and location of the purchase. All other information, such as tax rates and product categories, is not part of the input and can be stored/ initialized within the program or as part of configuration settings. Output The program should print the list of items customer purchased, including name/qty/price, subtotal, sales tax, and total, by following format of use cases. Tax rates In California (CA), sales tax rate is 9.75%, food is exempt. In New York (NY), sales tax rate is 8.875%, food and clothing are exempt. Please implement the program in your preferred way and language, unit test is a plus. if you use JS, you can either run within html/browser or just run with NodeJS
CppGuide
C/C++学习,后端开发进阶指南。
jimlausiuwing's Repositories
jimlausiuwing/CppGuide
C/C++学习,后端开发进阶指南。