Question: use python Bob, Dantela, and Luke are shopping for fruit at a store that only sells fruit bowls. A fruit bowl contains sone fruit and

use python  use python Bob, Dantela, and Luke are shopping for fruit at
a store that only sells fruit bowls. A fruit bowl contains sone

Bob, Dantela, and Luke are shopping for fruit at a store that only sells fruit bowls. A fruit bowl contains sone fruit and the price of a fruit bowl is the total price of all of its individual fruit. The store has mangos for ($1.00, strawberries ($3.ee, and apricots \$5.00. The price of each of these can be written in a vector: $$ Ivec[v] - \begin(matrix) 1 3 SW Vend{matrix $$ The store sells the follow the fruit bowls: Follow the #1: 4 of each fruit #2: 1 mangos and 3 apricots #3: 4 strawberries and 2 apricots #4: 12 apricots Bob, Daniela, and Luke make the following purchases: Bob buys 3 fruit bowl #2's and 2 fruit bowl #3. Daniela buys 2 of each fruit bowl. Luke buys 10 fruit bowl $45 (he really likes apricots). Create a matrik $$ such that the matrix expression AB\vec[v) $$ evaluates to a length 3 column vector containing how much each of then spent. The first entry of the result should be the total amount spent by Bob, the second entry the amount sent by Daniela, etc. ***Complete the following block of code: *** (26) def amount spent (V, B): A = np.array [O, ), 2, 0). 12, 2, 2, 2) [0, 0, , 0]]> # Finish this 1) return A DV

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!