Question: USING WHILE AND MATRIX, MATLAB Problem based on exercise 36 from the textbook. A food company manufactures five types of 32-oz trail mix packages using


Problem based on exercise 36 from the textbook. A food company manufactures five 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 some min and max for each) but can never vary in the total weight of the package. The data of each package manufactured is stored by day Your 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 have less or more than that, the program must say that it didn't pass the test and why (too light, too heavy) - Each package must have at least 2 of each ingredient, and 10 at most. If a package have less or more than that, the program must say that it didn't pass the test and why (which ingredients are not right and if it has too few of it or too much) 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 105210101010152551085105101102210652
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
