Question: a matlab program 7. [10 points) Two stores (A. B) both sell one product. The sales data for each day is shown in the following

 a matlab program 7. [10 points) Two stores (A. B) both

a matlab program

7. [10 points) Two stores (A. B) both sell one product. The sales data for each day is shown in the following table (use variable T for the table). The first column is used to identify the stores (A and B): the 2nd column is the unite price of the product on that day, the 3rd column is the number of sold product on each day. (1) Get a sub-table (T2) which includes only the sales data for store A (all three columns). (2) Calculate average (unit) price, maximum price for store A. (3) Calculate the total sale amount for store A. That is, 25*10 + 26*9 + 20*18 + ... + 22*18. You will get one bonus mark if you solve this without using loop. (4) Plot count (v-axis) against price (x-axis) for store A sales data. Only points are requested, NO line between points. store price count A 25 10 A 26 I 9 24 T 12 A 20 18 B B A 27 I 5 2011 22 18 7. [10 points) Two stores (A. B) both sell one product. The sales data for each day is shown in the following table (use variable T for the table). The first column is used to identify the stores (A and B): the 2nd column is the unite price of the product on that day, the 3rd column is the number of sold product on each day. (1) Get a sub-table (T2) which includes only the sales data for store A (all three columns). (2) Calculate average (unit) price, maximum price for store A. (3) Calculate the total sale amount for store A. That is, 25*10 + 26*9 + 20*18 + ... + 22*18. You will get one bonus mark if you solve this without using loop. (4) Plot count (v-axis) against price (x-axis) for store A sales data. Only points are requested, NO line between points. store price count A 25 10 A 26 I 9 24 T 12 A 20 18 B B A 27 I 5 2011 22 18

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!