/Order-Processing-Simulator

A program that simulates restaurant orders being processed

Primary LanguageTypeScript

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

npm install

Start the development server

npm start

screenshot1 screenshot2 screenshot3