Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

required in octave 3. (40 points) A food company manufactures different types of 8 oz Trail mix packages using different mixtures of peanuts, almonds, walnuts,

image text in transcribedrequired in octave
3. (40 points) A food company manufactures different types of 8 oz Trail mix packages using different mixtures of peanuts, almonds, walnuts, raisins, and M&Ms. The mixtures have the following compositions, the data are stored in mix.dat. Write a script M-file, which a) reads the data, and displays the number of mix packages the company manufactures, b) extracts the amounts (in oz) of walnuts and M&Ms in the Mix 2 and assigns it to a column vector named mix2_w_MM, c) extracts the amounts (in oz) of raisins in all the mix packages and assigns it to a row vector named raisins, d) displays the average weight per type of ingredient in Mix 1 (you are not allowed to use the function mean), e) displays the weight percentage of peanuts in Mix 5, f) displays the average weight percentage of peanuts per package, g) displays the mix package which contains the minimum amount of almonds, h) displays the mix package which contains the maximum amount of M&Ms. i) displays the geometric mean of amount of peanuts in the packages. Peanuts (oz) Almonds (oz) Walnuts (oz) Raisins (oz) M&Ms (oz) Mix 1 3 1 2 Mix 2 1 2 1 3 1 Mix 3 1 1 0 3 3 Mix 4 2 0 3 1 2 Mix 5 1 2 3 0

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

Recommended Textbook for

Object Oriented Databases Prentice Hall International Series In Computer Science

Authors: John G. Hughes

1st Edition

0136298745, 978-0136298748

More Books

Students also viewed these Databases questions