Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

An airline is using airplanes of various sizes to ship containers between two airports. Each shipment consists of a number of standardized containers that must

An airline is using airplanes of various sizes to ship containers between two airports. Each
shipment consists of a number of standardized containers that must be loaded on the airplanes so
as to minimize the amount of unused space. As several shipments of different sizes arrive at the
airport, the airline must decide which shipment is loaded on which plane. The following rules are
applied:
- All airplanes are flying to the same destination, i.e. a shipment can be added to any
airplane.
- A shipment cannot be split among different airplanes.
- Once a shipment is loaded on a plane, it cannot be unloaded before departure.
You are tasked with writing a program that will assign shipments to airplanes in the order of the
shipments arrival at the airport. The airline you work for operates Airbus A321 planes with a
capacity of 10 containers each, Boeing B777 airplanes with a capacity of 32 containers each, and
Boeing B787 airplanes with a capacity of 40 containers each.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Power Of Laws

Authors: Terence K Moloisane

1st Edition

B08Z7HTFTJ, B0CP2YDQDK

More Books

Students also viewed these General Management questions

Question

What is the domain of a polynomial?

Answered: 1 week ago