Question: Language is Python A cargo ship company is asking for software to distribute their loads to meet 'Homogeneous Hold Loading Conditions (Fully or Partly Loaded)'

 Language is Python A cargo ship company is asking for software

Language is Python A cargo ship company is asking for software to distribute their loads to meet 'Homogeneous Hold Loading Conditions (Fully or Partly Loaded)' The developed software should distribute the cargo evenly in the most evenly weighted possible way to the 4 zones of the ship (Forward Port, Forward Starboard, Stern Forward, Stern Starboard). The user should enter the weights of cargos as a list/tuple/set of integers etc. and output should be a list that shows the distribution of cargo. Eg. -Please enter the list of your cargo containers in tons. input: [10,65,30,40,50,60] output: "The weight distribution of the ship should be as:" Forward Port=[60 ] Forward Starboard=[40,30 ] Stern Port=[65] Stern Starboard=[50,10] You may notice the loads are not divided perfectly even, as it is not possible for the case. Notes: -You can't split a cargo container in any condition its load should remain the same. -If a single cargo container load exceeds 33% of the overall cargo load, the program should warn the user -The inputs should be provided by the user, it can't be a constant value. -The developer feels free to set maximum loading condition or any other conditions he/she feels it would be beneficial. -The developers are highly encouraged to use Python documentation to explore handy functions for such tasks. Eg. Min and Max functions could be used while defining the maximum and minimum loads in the list. Sample usage of these functions are as follows: number = [3, 2, 8, 5, 10, 6] largest_number = max(number) lowest_number= min(number) print (largest_number) print (lowest_number) --------- output 10 2

A cargo ship company is asking for software to distribute their loads to meet 'Homogeneous Hold Loading Conditions (Fully or Partly Loaded) The developed software should distribute the cargo evenly in the most evenly weighted possible way to the 4 zones of the ship (Forward Port, Forward Starboard, Stern Forward, Stern Starboard). The user should enter the weights of cargos as a list/tuple/set of integers etc. and output should be a list that shows the distribution of cargo. Eg. -Please enter the list of your cargo containers in tons. input: (10,65,30,40,50,60] output: "The weight distribution of the ship should be as: Forward Port=[60] Forward Starboard=[40,30 ] Stern Port=[65] Stern Starboard={50,10] You may notice the loads are not divided perfectly even as it is not possible for the case. Notes: -You can't split a cargo container in any condition its load should remain the same. Elf a single cargo container load exceeds 33% of the overall cargo load, the program should warn the user The inputs should be provided by the user, it can't be a constant value. -The developer feels free to set maximum loading condition or any other conditions he/she feels it would be beneficial, -The developers are highly encouraged to use Python documentation to explore handy functions for such tasks. Eg. Min and Max functions could be used while defining the maximum and minimum loads in the list. Sample usage of these functions are as follows: ES DELET WISE 10

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!