{"id":28466730,"url":"https://github.com/arranbartish/sales-tax","last_synced_at":"2025-10-25T17:18:41.705Z","repository":{"id":295464541,"uuid":"989282228","full_name":"arranbartish/sales-tax","owner":"arranbartish","description":"TDD fun","archived":false,"fork":false,"pushed_at":"2025-05-26T17:35:31.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-30T23:36:41.801Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arranbartish.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2025-05-23T19:55:06.000Z","updated_at":"2025-05-26T17:35:34.000Z","dependencies_parsed_at":"2025-05-25T18:31:58.575Z","dependency_job_id":"d0978c50-24c1-4b5f-9179-28799cbae707","html_url":"https://github.com/arranbartish/sales-tax","commit_stats":null,"previous_names":["arranbartish/sales-tax"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/arranbartish/sales-tax","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arranbartish%2Fsales-tax","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arranbartish%2Fsales-tax/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arranbartish%2Fsales-tax/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arranbartish%2Fsales-tax/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arranbartish","download_url":"https://codeload.github.com/arranbartish/sales-tax/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arranbartish%2Fsales-tax/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280988934,"owners_count":26425598,"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","status":"online","status_checked_at":"2025-10-25T02:00:06.499Z","response_time":81,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-06-07T07:05:26.946Z","updated_at":"2025-10-25T17:18:41.668Z","avatar_url":"https://github.com/arranbartish.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"SALES TAXES\n\nBasic sales tax is applicable at a rate of 10% on all goods, except books, food,\nand medical products that are exempt. Import duty is an additional sales tax\napplicable on all imported goods at a rate of 5%, with no exemptions.\n\nWhen I purchase items I receive a receipt which lists the name of all the items\nand their price (including tax), finishing with the total cost of the items,\nand the total amounts of sales taxes paid.  The rounding rules for sales tax are\nthat for a tax rate of n%, a shelf price of p contains (np/100 rounded up to\nthe nearest 0.05) amount of sales tax.\n\nWrite an application that prints out the receipt details for these shopping baskets...\nINPUT:\nInput 1:\n1 book at 12.49\n1 music CD at 14.99\n1 chocolate bar at 0.85\n\nInput 2:\n1 imported box of chocolates at 10.00\n1 imported bottle of perfume at 47.50\n\nInput 3:\n1 imported bottle of perfume at 27.99\n1 bottle of perfume at 18.99\n1 packet of headache pills at 9.75\n1 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:\n1 imported box of chocolates: 10.50\n1 imported bottle of perfume: 54.65\nSales Taxes: 7.65\nTotal: 65.15\n\nOutput 3:\n1 imported bottle of perfume: 32.19\n1 bottle of perfume: 20.89\n1 packet of headache pills: 9.75\n1 imported box of chocolates: 11.85\nSales Taxes: 6.70\nTotal: 74.68","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farranbartish%2Fsales-tax","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farranbartish%2Fsales-tax","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farranbartish%2Fsales-tax/lists"}