So, my linear algebra teacher assigned us matlab projects, and I have never used
ID: 2962780 • Letter: S
Question
So, my linear algebra teacher assigned us matlab projects, and I have never used the program before. I've worked my way through the first problem, but could someone please help me with the second???? Thanks!
Problem #2
The sales of food at a local restaurant are represented in the following table:
Day
Burgers
Hot dogs
French fries
Cookies
Sodas
Monday
30
22
25
60
18
Tuesday
28
16
21
30
15
Wednesday
40
32
28
72
29
Thursday
26
13
18
38
12
Friday
63
41
62
102
53
Saturday
59
38
55
92
40
Sunday
31
19
25
56
21
The prices charged for in the table below:
Burgers
Hot dogs
French fries
Cookies
Sodas
$2.29
$1.29
$1.39
$0.50
$0.99
Part one) Use matrix multiplication to find the sales for last week.
Part two) During the summer sales increase by 15% to 20% per week. Show the number of items sold with 15% increase and then with a 20% increase.
Part three) During spring break, sales decrease from 20% to 30% Show the number of items sold with 20% increase and then with a 30% decrease.
Day
Burgers
Hot dogs
French fries
Cookies
Sodas
Monday
30
22
25
60
18
Tuesday
28
16
21
30
15
Wednesday
40
32
28
72
29
Thursday
26
13
18
38
12
Friday
63
41
62
102
53
Saturday
59
38
55
92
40
Sunday
31
19
25
56
21
Explanation / Answer
part 1.
items =
30 22 25 60 18
28 16 21 30 15
40 32 28 72 29
26 13 18 38 12
63 41 62 102 53
59 38 55 92 40
31 19 25 56 21
price =
2.2900
1.2900
1.3900
0.5000
0.9900
total =
1604.2
>> code:
clc
items=[30 22 25 60 18;28 16 21 30 15;40 32 28 72 29;26 13 18 38 12;63 41 62 102 53;59 38 55 92 40; 31 19 25 56 21]
price=[2.29 1.29 1.39 0.50 0.99]'
total=sum(items*price)
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.