Debugging Activity
Function Problem 1
Corn in an Elevator
Brock O'Lee runs the grain elevator in Arrow Smith, Missouri. Corn is sold by the "bushel" but they don't actually measure the volume. Instead, the standard weight of 56 pounds per bushel is applied.
Write a Python function that conforms to the following
- Function Name
- loadValue()
- Parameters
- The weight of the load of corn
- The current price per bushel
- Return value
- The amount owed to the farmer
- Example(s)
- Special Instructions
- You should not round the results in any manner
Consider the following function to solve this problem
Right now if you run it with the example provided above it runs just fine. But it fails when submitted for testing.
Why?
You can watch the appropriate code-walkthrough video to see how I would answer this question.