stphnwlsh / ConveyorBelt

A sample project to calculate the number of shipping boxes required to handle a collection of products coming off a conveyor belt. Each shipping box has a maximum of 10 items and a maximum weight of 20kg. Each product can be 1, 2 or 3kg in weight.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Conveyor Belt

Description

A sample project to calculate the number of shipping boxes required to handle a collection of products coming off a conveyor belt. Each shipping box has a maximum of 10 items and a maximum weight of 20kg. Each product can be 1, 2 or 3kg in weight.

Table of Contents

Installation

Dependencies

Building and running the application requires Git to retrieve and .NET 8 to build and run the application. You can choose to use Docker to avoid installing the .NET SDK on your machine or to run it natively via the .NET 8 SDK.

or

Docker Instructions

# Clone the repository
git clone https://github.com/stphnwlsh/ConveyorBelt.git

# Navigate to the project directory
cd ConveyorBelt

# Build the project
docker build . -t conveyorbelt

.NET Instructions

# Clone the repository
git clone https://github.com/stphnwlsh/ConveyorBelt.git

# Navigate to the project directory
cd ConveyorBelt

# Build the project
dotnet build

Usage

Docker Instructions

# Run the application with default settings
docker run conveyorbelt

.NET Instructions

# Run the application with default settings
dotnet run

About

A sample project to calculate the number of shipping boxes required to handle a collection of products coming off a conveyor belt. Each shipping box has a maximum of 10 items and a maximum weight of 20kg. Each product can be 1, 2 or 3kg in weight.

License:MIT License


Languages

Language:C# 78.7%Language:Dockerfile 21.3%