Question

Please complete this problem in MATLAB. You need to buy some filing cabinets. You know that Cabin...

Please complete this problem in MATLAB.

You need to buy some filing cabinets. You know that Cabinet X costs $10 per unit, requires six square feet of floor space, and holds eight cubic feet of files. Cabinet Y costs $20 per unit, requires eight square feet of floor space, and holds twelve cubic feet of files. You have been given $140 for this purchase, though you don't have to spend that much. The office has room for no more than 72 square feet of cabinets. How many of which model should you buy, in order to maximize storage volume?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Code:


%declaring initial values
xcost=10
xarea=6
xvol=8
ycost=20
yarea=8
yvol=12
maxcost=140
maxarea=72
maxv=0
for i=1:1:12
for j=1:1:7
tempv=xvol*i+yvol*j
tempc=xcost*i+ycost*j
%calculate the temporary volume and cost for i number of model 1
%and j number of model 2
if tempv>maxv&&tempc<=maxcost
%if temporary vol greater than max value till now and cost less than 140
maxv=tempv
ifinal=i
jfinal=j
end
end
end
%print the final answers
fprintf('The number of items of model 1 are %d\n',ifinal)
fprintf('The number of items of model 2 are %d\n',jfinal)
fprintf('The maximum storage will be %d\n',maxv)

Output:

The number of items of model 1 are 12 The number of items of model 2 are 1 The maximum storage will be 108

Add a comment
Know the answer?
Add Answer to:
Please complete this problem in MATLAB. You need to buy some filing cabinets. You know that Cabin...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • You need to buy some filing cabinets. You know that Cabinet X costs $10 per unit,...

    You need to buy some filing cabinets. You know that Cabinet X costs $10 per unit, requires six square feet of floor space, and holds eight cubic feet of files. Cabinet Y costs $20 per unit, requires eight square feet of floor space, and holds twelve cubic feet of files. You have been given $140 for this purchase, though you don't have to spend that much. The office has room for no more than 72 square feet of cabinets. How...

  • Please show all steps. DATA CENTER REDESIGN You are a data center manager and have been...

    Please show all steps. DATA CENTER REDESIGN You are a data center manager and have been asked by your boss to redesign a telecommunications room in one of your smaller facilities. One element of this redesign you would like to optimize is the rack structure – your goal is to provide the greatest amount of equipment storage (by weight) within the cost constraints of the project. There are two types of storage racks you can choose from. Rack A costs...

  • Can I get some help??? Did I complete this problem correctly? GENERAL You plan to open...

    Can I get some help??? Did I complete this problem correctly? GENERAL You plan to open a pet services business that will offer dog grooming. day care and boarding COMPANY PROFILE TAB Determine a company name. Be creative fe.q. "Inspiring Dog Care" Pick a location feq. "Chicago" Define your company's vision and mission for how your business will add value to the community COST CLASSIFICATION Accurately classify all of your costs (direct material, direct labor, manufacturing overhead, period costs) Fixed...

  • please help me to solve this problem, will apreciate it if you can do it soon...

    please help me to solve this problem, will apreciate it if you can do it soon as possible. THANKS! Case 6-30 Service Organization; Segment Reporting (L06-4) Music Teachers, Inc., is an educational association for music teachers that has 20,100 members. The association operates from a central headquarters but has local membership chapters throughout the United States. Monthly meetings are held by the local chapters to discuss recent developments on topics of interest to music teachers. The association's magazine, Teachers' Forum,...

  • Can you please help me with the general entries for the listed accounts? I have attached...

    Can you please help me with the general entries for the listed accounts? I have attached Background information, and the questions for listed journal entries. 63% of the invoice reflects factory use and the other 37% reflects administrative activities. 20 The company declares and pays a cash dividend of $.65 per share. 22 The first note payment of $1,909 is made to the First Bank of Huntsville, which includes $750 in interest. (Interest = (180,000*.05)/12)) Employees are paid monthly on...

  • Can you please provide the formula for the worksheet also. CASE PROBLEMS Level 1- Analyzing Sales...

    Can you please provide the formula for the worksheet also. CASE PROBLEMS Level 1- Analyzing Sales for Crèmes Ice Cream Judd Hemming is the eastern regional marketing manager for Crèmes Ice Cream. Eac quarter, he completes two separate analyses: an analysis comparing ice cream flavor sale volumes from all regional locations with the same quarter sales volumes from the previou year and an analysis comparing total sales in dollars, including mean, median, mode, and standard deviation, of sales by store....

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT