Answered step by step
Verified Expert Solution
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, ie 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 A planes with a
capacity of containers each, Boeing B airplanes with a capacity of containers each, and
Boeing B airplanes with a capacity of containers each.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started