Question: solve this exercise using MATLAB with the while and matrix command a food company manufacturers 5 types of 32 oz trail mix packages using different
solve this exercise using MATLAB with the while and matrix command
a food company manufacturers 5 types of 32 oz trail mix packages using different mixtures of peanuts, almonds, walnuts, raisins and M&Ms. the mixtures can vary in the amount of each composition (with a minimum and a maximum for each) but can never vary in the total weight of the package.
the program must verify that each package complies with the min, max and total weight requirements as follows:
>each package must have a total weight of 32 oz. if the package hace more or less than that, then the program will say that it didn't pass the test.
>each package must have at least 2 of each ingredient, and 10 at most. if a package have less or more than that, then the program will say that it didn't pass the test.
now the start must be in matrix example:

105210101010152551085105101102210652 According to the requisites, Mixes\#2, 3 and 5 should be rejected, so, the message should be: Total Rejections =3 Rejection: Mix 2 - total weight heavier than standards Rejection: Mix 3 - Almonds exceed standard, Raisins are below standards Rejection: Mix 5 - total weight lighter than standards
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
