Develop an algorithm that will work with any combination

Assignment Help Data Structure & Algorithms
Reference no: EM13762304

An online chocolate company wants to develop an automated system to enable them to become more eco friendly as well as save time and money. They have invested in a range of packing of specific sizes and want to develop a software system to make maximum use of these for their products. Their aim is to give the packing staff a dear set of instructions for each order, to make the packing process more efficient and timely. The constraints of the system are as follows:

1. Single items should be packed in bubble packs where possible.

2. A gift card is optional and free on all orders and should go inside the packaging and will fit in all delivery boxes and bubble packs taking up minimal space.

3. Orders over £70 receive a free "champagne truffles' which should be included in the delivery.

4. Each order should be packed into the least number of bubble packs and/or boxes as possible to keep costs low and reduce packaging waste.

5. For the holiday season the company is running a special discount on the purchase of any three selection boxes for £65.

The chocolate company has selected the following range of products to trial the new software with:

CODE

Item

Cost

Width or Diameter

Depth

Height

P106

Milk chocolate coins

£3 50

3cm

-

8cm

P115

Deluxe mixed chocolate coins

£6 50

San

-

12cm

P120

White chocolate truffles

£7

6an

8cm

3cm

A320

Mixed chocolate creams

E9 50

Scm

10cm

3cm

A325

Deluxe chocolate creams

£16 50

Scm

12cm

4cm

BX04

Dark selection box

£25

18cm

25cm

4cm

Bx08

white selection box

£25

20cm

18an

Scm

BX10

Milk selection box

£25

18cm

25cm

4cm

8502

Small chocolate tree decoration

£4 50

6cm

-

-

850S

Large chocolate planet tree decoration

£650

Scm

-

 

5810

Champagne truffles

£10

San

12cm

The range of packing the company has selected is as follows:

Packaging

Width

Depth

Height

S1 Bubble Pack

6cm

3cm

8cm

52 Bubble Pack

8cm

3cm

12cm

52 box

20cm

15cm

10cm

B4 Box

25cm

20cm

10cm

B6 Box

30cm

20cm

20cm

• Bubble Packs are flexible to some extent. The height of the item must not exceed the height of the pack. The sum of the W+D of the item must not exceed the sum of the W+D of the pack.

• All delivery boxes have an inner padding that is 1cm thick on all sides including the bottom and top. The table below shows the outside dimensions of all boxes and packs only.

The company has provided you with the following sample orders to test your system. Workout the correct boxes and packets manually, and then use this data to test your algorithm.

Order Number

Gift
Card

Code

Item Description

Cost

Qty

101:34

Yes

P120

white chocolate truffles

£7

2

101134

-

5502

Small chocolate tree decoration

£4.50

1

101134

 

P106

Milk chocolate coins

f3.50

1

101265

No

8504

Large dkocolate planet tree decoration

f6.50

1

101342

Yes

BX08

white selection box

£23

1

101342

-

P115

Deluxe mixed chocolate coins

f6.50

 

101487

No

5X04

Dark selection box

£25

:

101487

-

BX08

white selection box

£22

 

101487

BX10

Milk selection box

£25

1

101487

-

P115

Deluxe mixed chocolate coins

£6.50

1

101653

yes

A325

Deluxe chocolate creams

£16.50

2

Given the above scenario, develop an algorithm (final design presented as a flow chart) that will work with any combination of items. Your algorithm shou4 generate some form of packing instructions for staff to follow, which should include at least indicate:

• The size and type of the pack or box required

• Some indication on how the items should be arranged

• Any extras that should be included

Reference no: EM13762304

Questions Cloud

What tariff policy is in place for automobile manufacturers : Does NAFTA affect the automobile industry's decisions on what to do with labor costs? Capital costs? If so, how? Was this trade agreement good for the United States from an economic standpoint? Was it good for Mexico from and economic standpoint?
The results of a nursing or health research : The results of a nursing or health research study in which a statistical procedure .
System network administrator : You are the system network administrator for the Can-D company, which is an organization of 3,000 employees working from a large corporate campus in sunny Orlando, Florida.
Analyze the basic principles of selected learning theories : Analyze the basic principles of selected teaching and learning theories. Evaluate the methods that businesses and other post-secondary education environments use to respond to adult learning needs.
Develop an algorithm that will work with any combination : Given the above scenario, develop an algorithm (final design presented as a flow chart) that will work with any combination of items. Your algorithm shou4 generate some form of packing instructions for staff to follow, which should include at leas..
Research cloud computing topologies : Explain some of the challenges in implementing and managing cloud topologies (make sure you include relevant skills needed to manage a cloud network for an organization.
Middle-range theories based problems : The background of the theorist and any concepts that developed from applying the theory to your scenario.
Rendering of a certified opinion : Discuss in two paragraphs if internal controls in this scenario are adequate for the rendering of a certified opinion? What recommendations would you make in order to increase the use of internal controls in this area?
Major information security threats : Write a 3-to 4-page paper on at least three major information security threats that a specific organization you choose faces today. This portion of the assignment should provide a foundation for the sections to be added in Weeks 3 and 4

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Java program to find largest and smallest numbers

Create a Java program that will search a text document of strings representing numbers of type int and will write the largest and the smallest numbers to screen.

  Creating financial tracking program

Acme Inc. is making next generation financial tracking program, and Alice has been provided the task of writing encryption component.

  Microsoft project file work breakdown structure

Update the Microsoft Project file you created in Assignment 1: VoIP Part 2 (Work Breakdown Structure) with the following changes

  Single binary search tree

You must store the words and the counts of the words in a single binary search tree and each word occurring in the text can only be stored once in the tree

  Object oriented approach versus the relational database

Supporters of object oriented databases list many benefits for using the object oriented approach versus the relational one.

  Write efficient pseudocode algorithm to determine record

Write the most efficient pseudocode algorithm you can to determine the record with specific customerID if every single customer ID from 101 to 500 is used and array has 400 elements.

  Creating sql statements

Create three SQL statements: the 1st statement should add pending amounts to appropriate accounts, the second statement should subtract the pending amounts from appropriate accounts,

  Write a method that uses the bst to output

Write a method to count the number of items in the BST (Note that you should do this by traversing the BST and not in any other way). The method returns an integer.

  Describe a fair coin algorithm to returns either 0 or 1

Describe a FAIRCOIN algorithm that returns either 0 or 1 with equal probability, using ONEINTHREE as your only source of randomness.

  Identify data structures to organize typical file cabinet

Identify at least two data structures that are used to organize a typical file cabinet. Why do you feel it is necessary to emulate these types of data structures in a computer program?

  Online vs. face-to-face classes

Communication A significant distinction between online and face-to-face classes lies in the area of communication.

  Write a context-free grammar for arithmetic expressions

Transform the context-free grammar obtained in Activity 5 to a pushdown automaton using the algorithm in Section 12.2.2. Turn in your solution by the date when Section 12.3 is finished.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd