{"id":15603410,"url":"https://github.com/alexwebgr/shopping_cart","last_synced_at":"2025-06-25T23:32:01.203Z","repository":{"id":152130327,"uuid":"320262945","full_name":"alexwebgr/shopping_cart","owner":"alexwebgr","description":null,"archived":false,"fork":false,"pushed_at":"2020-12-10T12:18:40.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-20T01:49:57.258Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alexwebgr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-12-10T12:16:46.000Z","updated_at":"2020-12-10T12:18:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"ddca625b-09c0-40c0-b4b4-2f457ef331a8","html_url":"https://github.com/alexwebgr/shopping_cart","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alexwebgr/shopping_cart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexwebgr%2Fshopping_cart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexwebgr%2Fshopping_cart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexwebgr%2Fshopping_cart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexwebgr%2Fshopping_cart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexwebgr","download_url":"https://codeload.github.com/alexwebgr/shopping_cart/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexwebgr%2Fshopping_cart/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261972860,"owners_count":23238539,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T03:03:08.734Z","updated_at":"2025-06-25T23:32:01.172Z","avatar_url":"https://github.com/alexwebgr.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PROBLEM TWO: SALES TAXES\n\nBasic sales tax is applicable at a rate of 10% on all goods, except books, food, and medical products that are exempt. \nImport duty is an additional sales tax applicable on all imported goods at a rate of 5%, with no exemptions.\n\nWhen I purchase items I receive a receipt which \n* lists the name of all the items and their price (including tax),\n* finishing with the total cost of the items,\n* and the total amounts of sales taxes paid. \n  \nThe rounding rules for sales tax are that for a tax rate of n%, a shelf price of p contains (n*p/100 rounded up to the nearest 0.05) amount of sales tax.\n\nWrite an application that prints out the receipt details for these shopping baskets… \n\nINPUT:\nInput 1: \n1 book at 12.49 \n1 music CD at 14.99 \n1 chocolate bar at 0.85\n\nInput 2: 1 imported box of chocolates at 10.00 1 imported bottle of perfume at 47.50\n\nInput 3: 1 imported bottle of perfume at 27.99 1 bottle of perfume at 18.99 1 packet of headache pills at 9.75 1 box of imported chocolates at 11.25\n\nOUTPUT\nOutput 1: \n1 book : 12.49 \n1 music CD: 16.49 \n1 chocolate bar: 0.85 \nSales Taxes: 1.50 \nTotal: 29.83\n\nOutput 2: 1 imported box of chocolates: 10.50 1 imported bottle of perfume: 54.65 Sales Taxes: 7.65 Total: 65.15\n\nOutput 3: 1 imported bottle of perfume: 32.19 1 bottle of perfume: 20.89 1 packet of headache pills: 9.75 1 imported box of chocolates: 11.85 Sales Taxes: 6.70 Total: 74.68\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexwebgr%2Fshopping_cart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexwebgr%2Fshopping_cart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexwebgr%2Fshopping_cart/lists"}