Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Carlos Coronel, Steven Morris

14th Edition

978-0357673034

More Books

Students also viewed these Databases questions