Skip to content

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

Notifications You must be signed in to change notification settings

stphnwlsh/ConveyorBelt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks