Question

In: Mechanical Engineering

A machine cuts N pieces of a pipe. After each cut, each piece of the pipe...

A machine cuts N pieces of a pipe. After each cut, each piece of the pipe is weighed and its length is measured. These two values are stored in a matrix called pipe where the first column is the length and the second column is the weight. Each row represents the weight and length of a cut piece of pipe. Ignoring units, the weight is supposed to be between 2.1 and 2.3, inclusive. The length is supposed to be between 10.3 and 10.4, inclusive.

Create a flow chart to do the following, using MATLAB syntax in all blocks:  Count how many rejects there are. A reject is any piece that has an invalid weight and/or length.  Return the number of rejects  Return the percentage of the total number of parts that are rejects

Solutions

Expert Solution


Related Solutions

A 20 foot piece of wire is to be cut into two pieces. One piece is...
A 20 foot piece of wire is to be cut into two pieces. One piece is used to form a circle and the other is used to form a square (imagine fence used to make a square corral and a circular corral). What lengths should be cut to make each shape in order to maximize the sum of the areas of the two shapes? Let x = the length of the part of the wire that will be used to...
A piece of wire 10 meters long is cut into two pieces. One piece is bent...
A piece of wire 10 meters long is cut into two pieces. One piece is bent into a square and the other is bent into an equilateral triangle. How should the wire be cut so that the total area enclosed is: a maximum? a minimum?
A piece of wire 6 m long is cut into two pieces. One piece is bent...
A piece of wire 6 m long is cut into two pieces. One piece is bent into a square and the other is bent into a circle. (a) How much wire should be used for the square in order to maximize the total area? (b) How much wire should be used for the square in order to minimize the total area?
A piece of wire 28 m long is cut into two pieces. One piece is bent...
A piece of wire 28 m long is cut into two pieces. One piece is bent into a square and the other is bent into an equilateral triangle. (Give your answers correct to two decimal places.) (a) How much wire should be used for the square in order to maximize the total area? (b) How much wire should be used for the square in order to minimize the total area?
A piece of wire of length 50 is​ cut, and the resulting two pieces are formed...
A piece of wire of length 50 is​ cut, and the resulting two pieces are formed to make a circle and a square. Where should the wire be cut to​ (a) minimize and​ (b) maximize the combined area of the circle and the​ square? a) To minimize the combined​ area, the wire should be cut so that a length of ____ is used for the circle and a length of ____is used for the square. ​(Round to the nearest thousandth...
A wire 370 in. long is cut into two pieces. One piece is formed into a...
A wire 370 in. long is cut into two pieces. One piece is formed into a square and the other into a circle. If the two figures have the same area, what are the lengths of the two pieces of wire (to the nearest tenth of an inch)?
A wire 370 in. long is cut into two pieces. One piece is formed into a...
A wire 370 in. long is cut into two pieces. One piece is formed into a square and the other into a circle. If the two figures have the same area, what are the lengths of the two pieces of wire (to the nearest tenth of an inch)?
21.    Solve the problem.A 44-in. piece of string is cut into two pieces. One piece is used...
21.    Solve the problem.A 44-in. piece of string is cut into two pieces. One piece is used to form a circle and the other to form a square. How should the string be cut so that the sum of the areas is a minimum? Round to the nearest tenth, if necessary.   a)Circle piece = 10.6 in., square piece = 33.4 in. b)Square piece = 0 in., circle piece = 44 in. C)Square piece = 10.6 in., circle piece = 33.4 in....
consider the following function. A piece of wire 14 m long is cut into two pieces....
consider the following function. A piece of wire 14 m long is cut into two pieces. One piece is bent into a square and one bent into an equilateral triangle. How should the wire be cut so that the total area enclosed is a minimum?
The end of a stopped pipe is to be cut off so that the pipe will...
The end of a stopped pipe is to be cut off so that the pipe will be open. If the stopped pipe has a total length L, what fraction of L should be cut off so that the fundamental mode of the resulting open pipe has the same frequency as the fifth harmonic (n=5) of the original stopped pipe? Express your answer in terms of L.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT