Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vaporjawn/order-processing-simulator
A program that simulates restaurant orders being processed
https://github.com/vaporjawn/order-processing-simulator
css html javascript order processing react simulator typescript vite
Last synced: about 2 months ago
JSON representation
A program that simulates restaurant orders being processed
- Host: GitHub
- URL: https://github.com/vaporjawn/order-processing-simulator
- Owner: Vaporjawn
- Created: 2023-11-14T09:17:54.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-04T01:12:16.000Z (9 months ago)
- Last Synced: 2024-05-02T02:28:16.924Z (8 months ago)
- Topics: css, html, javascript, order, processing, react, simulator, typescript, vite
- Language: TypeScript
- Homepage:
- Size: 628 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Order Processing Simulator
## Task
Write a program that simulates restaurant orders being processed
## Instructions
- Your program should accept the following inputs:
- Enter the number of orders to simulate
- Enter the maximum time to complete processing a single order
- Enter the number of simultaneous order processors- Your program should give each order a unique identifier when it is created
- Your program will create the orders and then process them in the order they were created. Sequential number is acceptable for unique order identifier.
- Your program should somehow display the orders completed by each order processor along with the elapsed time to process that order
- After all orders are processed the program should output the number of orders processed by each processor and the average time to complete orders for that processor## Running the program
### Install dependencies
```bash
npm install
```### Start the development server
```bash
npm start
```![screenshot1](./assets/../src/assets/screenshot%201.png)
![screenshot2](./assets/../src/assets/screenshot%202.png)
![screenshot3](./assets/../src/assets/screenshot%203.png)