Question: Please read the function description, (I think the required output is there) . MATLAB CODING factoryNotes O solutions submitted (max: 7) Function Name: factory Notes

Please read the function description, (I think the required output is there) . MATLAB CODING

Please read the function description, (I thinkPlease read the function description, (I thinkPlease read the function description, (I think

factoryNotes O solutions submitted (max: 7) Function Name: factory Notes Inputs (2): 1. (char) filename of the inventory 2. (char) filename of the warehouse Outputs (1): 1. (Mx2 cell array) listing the items that need restocking and how much stock is needed Topics: (low level 1/0), (cell arrays) Function Description: You are managing a new flourishing business. You have opened up a franchise in the heart of Atlanta to cater all sorts of prducts to the students of Georgia Tech. Since you are fresh to start, you keep inventory in house but also have to send out a weekly list of what items you need based of the inventory at the francise warehouse. To do so, you will check how much of each item you have in inventory, then compare this to the amount of each item in the warehouse. You will take this and find the difference if there is one, and list the products that have fewer stock in inventory than in the warehouse, and what the difference is. Hint: 1. You do not know how many unique items are in inventory 2. The layout is always (#. (item name) - #of stock) in both the inventory and warehouse 3. Not every item needs restocking Example: >> inventoryFn1 = 'inventory1.txt' 11. Tomatos - 5 2. Potatos - 6 3. Avocados 0 4. Onions - 7 5. Carrots 12 >> warehouseFn1 = 'warehouse1.txt' 1. Tomatos 5 2. Potatos 6 3. Avocados 12 4. Onions - 10 5. Carrots 12 >> stockList1 = factoryNotes (inventoryFni, warehouseFn1) stockList1 => {Avacados, 12; Onions, 3} >> inventoryFn2 = 'inventory2.txt' 1. Chickens - 23 2. Goats - 14 3. Beef - 4. Bacon - 9 >> warehouseFn2 = 'warehouse2.txt' 26 1. Chickens 2. Goats 19 3. Beef - 10 4. Bacon 10 >>stockList2 = factoryNotes (inventoryFn2, warehouseFn2) stockList2 => {Chickens, 3; Goats, 5; Beef, 10; Bacon, 1}

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 General Management Questions!