Project2 - ECE 3090 PROJECT 2 THE ROBOT RECYCLER Assigned:...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
You’ve been tasked to program a glass-recycling robot. Recycling glass requires that the glass be separated by color into one of three categories: brown, green, and clear glass. In this problem, the robot’s owner will give the robot three recycling bins, each containing a specific number of brown, green, and clear bottles. In order to be recycled, the bottles will need to be moved so that each bin only contains bottles of one color. Because the robot owner wants to maximize the working life of the robot, the problem in the recycling task is to move the minimum number of bottles from one bin to another. The maximum number of bottles accumulated in all three bins will be <= 500. Write a program that, given a list of recycling cases, will calculate the total number of bottles that need to be moved. The maximum number of recycling cases that the robot is required to handle is 10. Example As an example, consider the following recycling case: Initial Number of Recycling Bin Brown Glass
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 06/09/2009 for the course ECE 3090 taught by Professor Staff during the Fall '08 term at Georgia Tech.

Page1 / 2

Project2 - ECE 3090 PROJECT 2 THE ROBOT RECYCLER Assigned:...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online