{"id":20719335,"url":"https://github.com/palutz/scalashoppingbasket","last_synced_at":"2025-08-17T07:02:57.454Z","repository":{"id":146829718,"uuid":"86397539","full_name":"palutz/scalaShoppingBasket","owner":"palutz","description":"A simple shopping basket in Scala, with an idiomatic approach...","archived":false,"fork":false,"pushed_at":"2017-03-28T07:27:59.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-23T16:40:52.248Z","etag":null,"topics":["functional-programming","scala"],"latest_commit_sha":null,"homepage":null,"language":"Scala","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/palutz.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}},"created_at":"2017-03-28T00:34:07.000Z","updated_at":"2017-03-28T00:36:42.000Z","dependencies_parsed_at":"2023-07-09T09:16:07.748Z","dependency_job_id":null,"html_url":"https://github.com/palutz/scalaShoppingBasket","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/palutz/scalaShoppingBasket","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palutz%2FscalaShoppingBasket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palutz%2FscalaShoppingBasket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palutz%2FscalaShoppingBasket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palutz%2FscalaShoppingBasket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/palutz","download_url":"https://codeload.github.com/palutz/scalaShoppingBasket/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palutz%2FscalaShoppingBasket/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270816193,"owners_count":24650752,"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-08-17T02:00:09.016Z","response_time":129,"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":["functional-programming","scala"],"created_at":"2024-11-17T03:16:50.945Z","updated_at":"2025-08-17T07:02:57.410Z","avatar_url":"https://github.com/palutz.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# scalaShoppingBasket\nA simple shopping basket in Scala, with an idiomatic approach...\n\n### Pre-requisites ###\n\n* Java JDK (Oracle or OpenJDK) 1.8.x\n* Scala 2.12.x+ (compiled with 2.12.1) (http://www.scala-lang.org/) \n* sbt 0.13.x (http://www.scala-sbt.org/)\n\n### How do I get set up? ###\n\n* From the project root just run `$ sbt`\n* '\u003e update` or`compile` if you want to compile before running\n* `\u003e run \u003ccommand or item to add\u003e (eg.: run Apples Milk Bread)\n* CTRL+D to exit the sbt\n\n\n## Problem description\n\nThe goods that can be purchased, together with their normal prices are: \n \n- Soup – 65p per tin \n- Bread – 80p per loaf \n- Milk – £1.30 per bottle \n- Apples – £1.00 per bag \n \nCurrent special offers: \n \n- Apples have a 10% discount off their normal price this week \n- Buy 2 tins of soup and get a loaf of bread for half price \n \nThe program should accept a list of items in the basket and output the subtotal, the special offer discounts \nand the final price. \n \nInput should be via the command line in the form PriceBasket item1 item2 item3 ... \n \nFor example: \n \nPriceBasket Apples Milk Bread \n \nOutput should be to the console, for example:  \nSubtotal: £3.10  \nApples 10% off: ­10p  \nTotal: £3.00 \n \nIf no special offers are applicable the code should output:  \nSubtotal: £1.30  \n(No offers available)  \nTotal price: £1.30 \n\n#Requires:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpalutz%2Fscalashoppingbasket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpalutz%2Fscalashoppingbasket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpalutz%2Fscalashoppingbasket/lists"}