Let's write the matrix which will contain data about cost of each of the component:
"A=\\begin{pmatrix}\n 32 &110 &8 &200 \\\\\n 50 &175 &10& 240\\\\\n 72 &250 &12 &280\\\\\n98 &345 &15 &320\n\\end{pmatrix}"
and matrix with selling prices:
"SP=\\begin{pmatrix}\n 9.50 \\\\\n 11.50\\\\\n13.50\\\\\n17.50\n\\end{pmatrix}"
a) To find the total cost of production for each size of the pizzas we should use multiplication.
Just multiply our matrix by another matrix which has one column of 1's:
"B=\\begin{pmatrix}\n 1 \\\\\n 1\\\\\n1\\\\\n1\n\\end{pmatrix}"
"AB=\\begin{pmatrix}\n 32 &110 &8 &200 \\\\\n 50 &175 &10& 240\\\\\n 72 &250 &12 &280\\\\\n98 &345 &15 &320\n\\end{pmatrix}x\\begin{pmatrix}\n 1 \\\\\n 1\\\\\n1\\\\\n1\n\\end{pmatrix}" "=\n\\begin{pmatrix}\n AB_{11} \\\\\n AB_{21} \\\\\nAB_{31} \\\\\nAB_{41} \n\\end{pmatrix}"
AB11 = 32 * 1 + 110 * 1 + 8 * 1 + 200 * 1 = 350
AB21 = 50 * 1 + 175 * 1 + 10 * 1 + 240 * 1 = 475
AB31 = 72 * 1 + 250 * 1 + 12 * 1 + 280 * 1 = 614
AB41 = 98 x 1 + 345 x 1 + 15 x 1 + 320 x 1 = 778
"AB=\n\\begin{pmatrix}\n 350 \\\\\n 475 \\\\\n614 \\\\\n778 \n\\end{pmatrix}"
So we get costs of all pizzas: small - 350cents, medium - 475cents, large - 614cents, family - 778cents.
b) x = A*B, where x is AB
"P=SP-\\dfrac{1}{100}*AB"
"P=\\begin{pmatrix}\n 9.50 \\\\\n 11.50\\\\\n13.50\\\\\n17.50\n\\end{pmatrix}-\\dfrac{1}{100}*\\begin{pmatrix}\n 350 \\\\\n 475 \\\\\n614 \\\\\n778 \n\\end{pmatrix}="
"=\\begin{pmatrix}\n 9.50-3.50 \\\\\n 11.50-4.75 \\\\\n13.50-6.14 \\\\\n17.50-7.78 \n\\end{pmatrix}=\\begin{pmatrix}\n 6.00 \\\\\n 6.75 \\\\\n7.36 \\\\\n9.72 \n\\end{pmatrix}"
So our profit will be:
from small: "\\approx6.0" dollars
from middle: "\\approx6.8" dollars
from large: "\\approx7.4" dollars
from family: "\\approx9.7" dollars
Comments
Leave a comment