Question
A, Consider the following two assignments: wine_cellar = ['Merlot', 'Riesling', 'Burgundy'] wine_cellar[0] = 'Zinfandel' Draw (or describe) the objects and labels that the Python interpreter
A, Consider the following two assignments:
- wine_cellar = ['Merlot', 'Riesling', 'Burgundy']
- wine_cellar[0] = 'Zinfandel'
Draw (or describe) the objects and labels that the Python interpreter creates in response to the first assignment. Then draw (or describe) the objects and labels that results from carrying out the second assignment immediately after the first assignment.
B, Imagine that a company in the freight transport business has commissioned you to solve the following problem. Given bulk cargo with a certain weight per m3, compute the volume of that bulk cargo in m3that a single 40-foot standard container can hold.
A standard 40-foot container:
- has an internal volume of 67.5 m3
- a maximum net load of 26199 kg .
- For instance, 1 m3of gravel weighs 1800 kg. Because the maximum net load of a container is 26199 kg, a single container can only hold 14.555 m3of gravel, otherwise it would exceed the maximum net load.
For comparison, 1 m3of wood chips weighs 380 kg. Because the maximum net load of a container is 26199 kg, based on the maximum weight, it is allowed to hold 68.94 m3of wood chips. However, the internal volume of a single container is only 67.5 m3, so a single container can hold 67.5 m3of wood chips.
i.Include your initial decomposition of the problem in your solution document using the chevron notation (>and>>) from the module materials.
ii.Include the algorithm for solving the problem in your solution document.
iii.Provide a Python function that implements the algorithm. Follow the instructions above for submitting code.
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