Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

_0001_1001_10=_2014083_10guesti... Click Submit to complete this assessment. Question 5 Question 5 of 5 Save Bone 3 points (3 marks) Table shows the price item of

_0001_1001_10=_2014083_10guesti... Click Submit to complete this assessment. Question 5 Question 5 of 5 Save Bone 3 points (3 marks) Table shows the price item of four items on a supermarket. It also shows the average number of items sold every day in three branches. Write a MATLAB program to solve the following: Items Price item Number of items sold every day Branch 1 Branch 2 Branch 3 Item 1 10 7 14 20 Item 2 5 10 5 1 Item 3 3 6 6 1 Item 4 7 10 5 4 Make sure that you divide your program into 4 sections as studied (header/comment section, input section, calculation section, and output section). Add comments where necessary and use descriptive variable names to make your program easy to understand by anyone. 5.a) Determine the price of each item sold every day in each branch. The output should be a text and in a new line should be a 4-by-3 matrix (each colurm for each branch). 5.6) Determine the price of all items sold every day in each branch (without using element-by-element method). The output should be a text followed by 1-by-3 matrix on one line feach element for each branch). 5.c) Using the result of pet (b), what will be the total income of all branches every day if the first branch doubles its sales, the second branch decreases its sales by half, and the third branch keeps its sales the same. The output should be a text followed by a value on one line. (Do not use element-by-element method in this part). a

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_2

Step: 3

blur-text-image_3

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

Pro Android Graphics

Authors: Wallace Jackson

1st Edition

1430257857, 978-1430257851

More Books

Students also viewed these Programming questions