Question

In: Computer Science

Context: Imagine that a company in the freight transport business has commissioned you to solve the...

Context:

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 m3 that 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 m3 of gravel weighs 1800 kg. Because the maximum net load of a container is 26199 kg, a single container can only hold 14.555 m3 of gravel, otherwise it would exceed the maximum net load. For comparison, 1 m3 of 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 m3 of wood chips. However, the internal volume of a single container is only 67.5 m3, so a single container can hold 67.5 m3 of wood chips. In answer to this question you will need to decompose the problem, write an algorithm, and implement the algorithm as a single python function that returns the total volume that can be held by single container.

Question: Include your initial decomposition of the problem in your solution document using the chevron notation (> and >>) from the module materials.

Solutions

Expert Solution

SOLUTION-

I have solved the code in python and given screenshot also for easy understanding :)

CODE-

def container_vol(total_weight):

   max_net_load=26199      #the maximim load of the container
   internal_volume=67.5    #the maximum volume of the container

   volume=max_net_load/total_weight;    #calculating the volume bases on the weight of 1 m3

   if volume<=internal_volume:    #if volume less than the internal volume
     return volume          #return the calculated volume

   else:       #if volume is greater than the internal volume
       return internal_volume     #return the internal volume

def test_container_vol():
    #Test the container_vol function.
    # Test for gravel at 1800 kg per cubic metre
    assert container_vol(1800) == 14.555

    # Test for wood chips at 380 kg per cubic metre
    assert container_vol(380) == 67.5

    print ("All test's passed")
  
test_container_vol()

SCREENSHOT-

IF YOU HAVE ANY DOUBT PLEASE COMMENT DOWN BELOW I WILL SOLVE IT FOR YOU:)
----------------PLEASE RATE THE ANSWER-----------THANK YOU!!!!!!!!----------


Related Solutions

You have been commissioned by a local chapter of business professionals in the Phoenix area to...
You have been commissioned by a local chapter of business professionals in the Phoenix area to analyze their data. Specifically, the charter gathered data from its membership to learn about the relationship between years of experience and salary for individuals employed in general business roles and those employed in finance roles. Calculate the mean and standard deviation by position and experience and in total by completing the table provided in the template. Use analysis of variance (one-way ANOVA) to test...
A learning lab has commissioned you to administer a survey of people with dyslexia. You will...
A learning lab has commissioned you to administer a survey of people with dyslexia. You will use snowball sampling. 1. Explain how you would select the sample. 2. Explain how you would gather the data.
Question: imagine that you are a business manager. Your board of directors has requested that you...
Question: imagine that you are a business manager. Your board of directors has requested that you report on the significance and impact of utilizing activity-based costing (ABC) over a single plant-wide predetermined overhead rate (POHR). Using your required readings this week, you will create a brief presentation for your investors analyzing the pros and cons of using ABC, including a comparison of at least two of the activity rates versus the single plant-wide POHR with calculations. Here is the relevant...
Imagine that you are a business manager. Your board of directors has requested that you report...
Imagine that you are a business manager. Your board of directors has requested that you report on the significance and impact of utilizing activity-based costing (ABC) over a single plant-wide predetermined overhead rate (POHR). Create a brief example for your investors analyzing the pros and cons of using ABC, including a comparison of at least two of the activity rates versus the single plant-wide POHR with calculations. Here is the relevant information you need: • The single plant-wide POHR is...
imagine that you are a business manager. Your board of directors has requested that you report...
imagine that you are a business manager. Your board of directors has requested that you report on the significance and impact of utilizing activity-based costing (ABC) over a single plant-wide predetermined overhead rate (POHR).    create a brief presentation for your investors analyzing the pros and cons of using ABC, including a comparison of at least two of the activity rates versus the single plant-wide POHR with calculations. Here is the relevant information you need: The product that you produce requires...
An air-freight company has 8 adjacent positions on its Boeing-727 aircraft for freight containers. The weights...
An air-freight company has 8 adjacent positions on its Boeing-727 aircraft for freight containers. The weights of this containers depend on what they are carrying. and company statistics indicate that %7 of the containers are classified as ”heavy”. While heavy containers are not inherently dangerous, having two such containers next to each other is considered dangerous should the plane encounter a wind gust. Understandably, company wants to know how often will it be in a situation where two heavy cargo...
Imagine that you are opening a new small business. Depending on the type of business you...
Imagine that you are opening a new small business. Depending on the type of business you will open and the needs you may have. Please make a educated forecast of how many employees you would need and how they will support your strategies
You are a management consultant who has been commissioned by an organisation to produce a report...
You are a management consultant who has been commissioned by an organisation to produce a report that investigates management and leadership needs to support the organisation’s business strategy. The organisation has recently identified extensive changes in technology and business dynamics in the markets it serves. There is a need to plan for and manage this situation. Task 1: The senior management team want you to assess its current and future leadership requirements and produce a realistic leadership strategy and development...
GPS Tracking: You work for a midsize freight delivery company that has been using text messaging...
GPS Tracking: You work for a midsize freight delivery company that has been using text messaging as the primary communication channel between drivers and the central dispatch office. Drivers send a message to confirm the time and location whenever they’ve made a delivery or a pickup, and whenever dispatchers get an urgent request from a customer, they send messages to the trucks to find out who is nearby and available. This manual system is clumsy and prone to errors, and...
Overview: In the third milestone, you will jump forward in time: Imagine that your business has...
Overview: In the third milestone, you will jump forward in time: Imagine that your business has already opened. Use the updated scenario information to analyze your company’s performance. Post-opening Scenario: Your angel investors are silent in relation to the business; however, they require board meetings for status updates on the company’s financial health. Therefore, you need to analyze your company’s performance over the last month using the data provided below. Note: Your instructor will create an announcement sharing the income...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT