Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 6 days ago
JSON representation

A program that simulates restaurant orders being processed

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)