/Tax-calculator

Project for create a Tax Calculator based on product type

Primary LanguageRuby

Tax-Calculator 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

Getting Started Clone the repo https://github.com/David-Verde/Tax-calculator.git cd into the project Run bundle install to install dependencies To run tests write bundle exec rspec on the terminal

Author 👤 David Verde Alvarez

  • This is My GitHub: @David-Verde

  • This is My Twitter: @Unyielding1

🤝 Contributing Contributions, issues and feature requests are welcome!

Feel free to check the issues page.

Show your support Give a ⭐️ if you like this project!