Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Solve in MATLAB 1. Golf cart production A company manufactures and sells golf carts. At the end of each week, the company transfers the carts

Solve in MATLAB

image text in transcribed

1. Golf cart production A company manufactures and sells golf carts. At the end of each week, the company transfers the carts produced that week into storage (inventory). All carts that are sold are taken from the inventory.A simple model of this process is or alternatively I (k) = P(k-1) I (k-1)-S(k-1) where P(k) = number of carts produced in week k, 1(k)=number of carts in inventory in week k, and S(k)-number of carts sold in week k. Also assume the weekly production is based on the previous week's sales, that is, P(k)=S(k-1) The projected weekly sales for 10 weeks are Week 1 2 3 45 6 78 9 10 Sales 50 55 6070 70 75 8080 90 55 Suppose that the first week's production is 50 carts; that is P(1)-50. Write a MATLAB program to compute and plot the number of carts in inventory for each of the 10 weeks or until the inventory drops below zero. Assign an initial inventory of 50 carts for week one. Here are some MATLAB commands that you can incorporate in your script a) To plot inventory vs week as a bar graph, if you have a variable week [1:10] and a variable I 1x10 vector of inventory: bar (week, I) To display all your results as a table, try these MATLAB commands (P= 1x10 vector of carts produced, S=1x10 vector of sales) TT = table (week ' ,1' ,P' ,S' , . . . VariableNames 'Week', 'Inventory, 'Production, "Sales; disp (TT) Note that the transpose operator on the variables is required since table variables must be in column format b) Answer: Week Inventory Production 50 50 45 40 30 30 25 20 20 10 Sales 50 50 50 2 35 60 70 70 75 80 80 90 60 70 70 75 80 80 90 25 O 15 10 10 1 23456 78 9 10

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

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

a. How do you think these stereotypes developed?

Answered: 1 week ago

Question

7. Describe phases of multicultural identity development.

Answered: 1 week ago