{"id":19600763,"url":"https://github.com/brightdaniel/pos_implementation","last_synced_at":"2026-06-13T17:31:51.156Z","repository":{"id":214182210,"uuid":"735899197","full_name":"BrightDaniel/Pos_Implementation","owner":"BrightDaniel","description":"POS System or a fast-food chain.","archived":false,"fork":false,"pushed_at":"2023-12-26T13:06:34.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-19T17:30:23.555Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","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/BrightDaniel.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}},"created_at":"2023-12-26T11:55:54.000Z","updated_at":"2024-04-24T05:57:49.000Z","dependencies_parsed_at":"2023-12-26T13:07:49.659Z","dependency_job_id":"780fc0d7-bed8-4326-aaa4-c90141aa7592","html_url":"https://github.com/BrightDaniel/Pos_Implementation","commit_stats":null,"previous_names":["brightdaniel/pos_implementation"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BrightDaniel/Pos_Implementation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrightDaniel%2FPos_Implementation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrightDaniel%2FPos_Implementation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrightDaniel%2FPos_Implementation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrightDaniel%2FPos_Implementation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BrightDaniel","download_url":"https://codeload.github.com/BrightDaniel/Pos_Implementation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrightDaniel%2FPos_Implementation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34294409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"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":"2024-11-11T09:16:07.267Z","updated_at":"2026-06-13T17:31:51.140Z","avatar_url":"https://github.com/BrightDaniel.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Point of Sale (POS) System for a Fast-Food Chain\n\n## Overview\nA Point of Sale (POS) system is a vital component for merchants, enabling them to conduct in-person sales efficiently. It encompasses a set of devices, software, and payment services that manage customer purchases, accept payments, provide receipts, and aid in inventory tracking. Initially starting with a centralized cash machine, modern POS systems have evolved to incorporate tablets and smartphones for order placement and payment.\n\n## Task 1: Tablet and Smartphone Ordering\n\n### Program Overview\nThe program for Task 1 aims to implement a part of the POS system allowing customers to use tablets or smartphones for placing orders and making payments. The implementation utilizes a state machine for better control and planning.\n\n### Program Features\n1. Requests the number of customers attending the event.\n2. Prompts customers to place orders for multiple items until a designated \"ending\" command is provided (e.g., check-out).\n3. Custom acronyms are used for each item for streamlined ordering.\n\n### Menu\n| Item                        | Price |\n|-----------------------------|-------|\n| Beef burger                 | £8.5  |\n| Grilled beef steak          | £9    |\n| Sous vide chicken breast    | £7    |\n| Grilled chicken             | £7    |\n| Grilled lamb Kofta          | £5.5  |\n| Minced lamb                 | £8.5  |\n| Teriyaki salmon (grilled)   | £9.5  |\n| Honey garlic salmon         | £9.5  |\n| Shrimp stew                 | £8    |\n| Grilled garlic shrimp       | £10   |\n| Vegan BBQ complex           | £7    |\n| Fry seasonal veg (Vegan)    | £6    |\n| Halloumi                    | £7    |\n| Pesto pasta                 | £2    |\n| Lard fried potato           | £5    |\n| Vegan pasta salad           | £2    |\n| Sweet potato fries (Vegan)  | £5    |\n| Rice                        | £1    |\n\n3. Displays a summary of the purchase and the total price once the customer places the \"ending\" command.\n\n## Task 2: Centralized Order Recording\n\n### Program Overview\nTask 2 extends the code from Task 1 by incorporating File I/O functions to centrally record all customer orders. The report generated is formatted for readability.\n\n### Program Features\n1. The program can record orders from multiple customers.\n2. Orders are saved in a readable format, providing insights into each customer's spending.\n\n## Task 3: Central Office Analysis\n\n### Program Overview\nTask 3 focuses on enabling the central office to act based on the collected customer order records. Various criteria are examined, and results are generated for decision-making.\n\n### Program Features\n1. Generates five customer orders using the code from Task 2.\n2. Utilizes string handling functions for efficient coding.\n3. Examines and presents the following results:\n   - (a) Average money spent per person.\n   - (b) Percentage of vegan dishes in total orders.\n   - (c) Identifies items related to the grill and stove, suggesting actions based on consumption percentages.\n\n### Analysis Results\n(a) **Average money spent per person:** Displays the average amount spent by each customer.\n\n(b) **Percentage of vegan dishes in total orders:** Calculates and displays the percentage of vegan dishes in all orders.\n\n(c) **Kitchen Ware Analysis:** Identifies items related to the grill and stove. Suggests actions based on consumption percentages:\n   - (c-1) Remove stove products if consumed by more than 25%.\n   - (c-2) Remove grill products if consumed by more than 25%.\n   - (c-3) Maintain both if both types are consumed by more than 25% of customers.\n\n**Note:** The results are generated based on the orders recorded centrally in Task 2.\n\n## Running the Code\nCompile the code files using:\n```bash\ngcc -o pos_system task_1.c task_2.c task_3.c\n```\nRun the executable:\n```bash\n./pos_system\n```\nEnsure the tasks are executed sequentially to get accurate and meaningful results.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrightdaniel%2Fpos_implementation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrightdaniel%2Fpos_implementation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrightdaniel%2Fpos_implementation/lists"}