Question: % Practice Exercise 1 0 . 1 . 3 % A group of friends went to a local fast - food establishment. % They ordered

% Practice Exercise 10.1.3
% A group of friends went to a local fast-food establishment.
% They ordered four hamburgers at $3.99 each, three soft drinks at $1.49 each, one milk shake at $2.50,
% two orders of fries at $0.99 each, and two orders of onion rings at $1.29.
% Use the dot product to determine the bill.
% Call the result total.
B =[0.991.492.500.991.29]
total = dot(A,B)
Assessment: 1 of 2 Tests Passed
Did you use the dot function?
Did you find the correct total?
Variable total has an incorrect value.
The calculation of 'total' is incorrect. Ensure you are using the dot product of 'price' and 'num' vectors correctly. Example: total = dot([1,2,3],[4,5,6]); should give the result
of 32
% Practice Exercise 1 0 . 1 . 3 % A group of

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 Finance Questions!