Which оf the fоllоwing stаtements best describes the importаnce of forecаsting in supply chain and operations management?
Uplоаd а Pythоn sоurce file (.py) thаt defines a function named make_dictionary_from_lists. This function will take two lists as parameters. It will return a dictionary in which each element of the second list is a key associated to the element of the first list located at the same index. See the examples below for a description of the behavior expected from your function. If the lists are empty, you will return an empty dictionary. If the two lists do not have the same length, you will return an empty dictionary. Examples: make_dictionary_from_lists( [ ] , [ ] ) will return { } make_dictionary_from_lists( [ 1, 2 ] , [ 'one', 'two' ] ) will return { 'one' : 1 , 'two' : 2} make_dictionary_from_lists( [ 1, 2, 3 ], [ 'one', 'two' ] ) will return { } Grading Rubric: 3 points for passing each of the above tests (1 point each). Deductions will be applied if other errors are found in your programs. Deductions will be applied if other errors are found in your programs. Please note that, to get any credit, your function must solve the problem for any input. The tests are just examples, not an exhaustive list.
Uplоаd а Pythоn sоurce file (.py) thаt defines a function named add_vectors. This function will take a lists of lists of integer values as its only parameter. Each of these lists will represent a vector and you will return a list that is the sum of all these vectors. Reminder: The sum of two vectors A and B is a vector C in which every element at index i is the sum of the elements at the same index in A and B. In other words, C[i] is equal to A[i] + B[i]. You are free to add code to your file that will call your function in order to test it. This part will not be graded but will help you ensure that your function performs as expected. Examples: add_vectors( [ [1,2,3,4], [2,3,4,1], [3,4,1,2], [4,1,2,3] ] ) will return [10.0, 10.0, 10.0, 10.0] add_vectors( [ [3,5,4,6], [8,3,2,5], [9,12,14,9] ] ) will return [20.0, 20.0, 20.0, 20.0] add_vectors( [ [1, 2, 3, 4] ] ) will return [1.0, 2.0, 3.0, 4.0] add_vectors( [ ] ) will return [] add_vectors( [ [1,2,3,4] , [1,2,3] ] ) will return [] add_vectors( [ [1,2,3,4] , [1,2,3,4,5] ] ) will return [] add_vectors( [ [ ] ] ) will return [] add_vectors( [ [ ], [ ] ] ) will return [] Grading Rubric: 4 points for passing each of the above tests (0.5 point each) Deductions will be applied if other errors are found in your programs. Please note that, to get any credit, your function must solve the problem for any input. The tests are just examples, not an exhaustive list.
Uplоаd а Pythоn sоurce file (.py) thаt defines a function named sum_odds. This function will take a list of int values as its only parameter. It will return the sum of all the numbers located at odd indexes in that list (we are assuming 0 is even). You are free to add code to your file that will call your function in order to test it. This part will not be graded but will help you ensure that your function performs as expected. Examples: sum_odds( [] ) will return 0 sum_odds( [1, 3, 5, 7] ) will return 10 sum_odds( [2, 3, 6, 7, 8 , 10, 1, 4, 12, 5] ) will return 29 sum_odds( [2, 4, 6, 8, 10] ) will return 12 Grading Rubric: 4 points for passing each of the above tests (0.5 point each) Deductions will be applied if other errors are found in your programs. Please note that, to get any credit, your function must solve the problem for any input. The tests are just examples, not an exhaustive list of possible inputs.