Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/murodjon000/sales-tax
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.
https://github.com/murodjon000/sales-tax
rspec ruby
Last synced: about 1 month ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/murodjon000/sales-tax
- Owner: Murodjon000
- Created: 2021-05-05T09:47:22.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-05-05T09:56:00.000Z (over 3 years ago)
- Last Synced: 2024-10-26T11:25:47.594Z (3 months ago)
- Topics: rspec, ruby
- Language: Ruby
- Homepage:
- Size: 4.88 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# SALES TAXES
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 that 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; this application should be written in Ruby [1] and use Rspec [2] to test inputs and the expected outputs. The output should be to standard out or CSV.
Proper object orientated design is important. Each row in the input represents a line item of the receipt.
## Built with
- Ruby
- Rspec
- CSV## Getting Started
- Clone the repo `[email protected]:Murodjon000/sales-tax.git`
- cd `into` the project
- Run `git pull origin app`
- Run `bundle install` to install dependencies
- To run tests write `bundle exec rspec` on the terminal## Author
👤 **Murodjon Tursunpulatov**
- Github: [@murodjon000](https://github.com/murodjon000)
- Twitter: [@MurodjonTursun5](https://twitter.com/MurodjonTursun5)
- Linkedin: [@Murodjon Tursunpulatov](https://www.linkedin.com/in/murodjon-tursunpulatov-5189481b3/)## 🤝 Contributing
Contributions, issues and feature requests are welcome!
Feel free to check the [issues page](issues/).
## Show your support
Give a ⭐️ if you like this project!
## 📝 License
MIT License