Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The target specification for the nominal distance between faces on the hexagonal bolt head is 0.50 inches. The company has a goal that this new

The target specification for the nominal distance between faces on the hexagonal bolt head is 0.50 inches. The company has a goal that this new process will produce bolts with a tolerance of -+().01 inches on this dimension, meaning the bolts produced will have a face distance equal to or between 0.49 and 0.51 inches,

Code has already been provided to define column vector of 1000 measurements of bolts collected from a manufacturing run into a single input variable named boltMeasurements. Add code to the script to perform the following tasks using the data in the boltMeasurements vector and assign the results to the indicated variable names. I. Using the values in the boltMeasurements vector and build a 2D array named missedBy that collects any measurements that miss the tolerance as follows: -Column 1 of missedBy should contain the position of the measurement in the column vector boltMeasurements. For example, if the measurements in rows 4, 10, 20 of boltMeasurements are the only ones that miss the tolerance, then missedBy is a 2D array with three rows and two columns. Column 1 of missedBy should be the three values (4, 10, and 20).

Column 2 of missedBy must contain a value equal to the value of the difference' between the measurement and the closest limit of the tolerance range. For example, a measurement of 0.47 in row 4 of boltMeasurements would mean a value of 0.47 0.49 = 0.02 should be assigned to row 1 and column 2 of missedBy. A measurement of 0.55 in row 10 of boltMeasurements would mean a value of 0.55 0.51 = 0.04 should be assigned to assigned to row 2 and column 2 of missedBy. The values in the missedBy vector should be in the same order the associated measurements appear in the input variable boltMeasurements i.e. missedBy is sorted by its column 1.

2. Compute the percentage of the measurements that meet the tolerance (i.e. 0.49 < < 0.51) and assign this value to the output variable percentPassed

3. Build a column vector passedTolcheck that contains all the measurements that pass the tolerance check and none of the values that failed the check. 110104000000010,00010,,,,,,

4. Compute the mean, standard deviation, median, and range of measurements in the column vector passedTolcheck. Put these measurements in the following named variables - passedBolts_mean, passedBolts_std, passedBolts_median, and passedBolts range.

Note the variable boltMeasurements is assigned values by the first line of the code. Do not overwrite these values in your code. Do not use any while or for loop in your solution. '

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_2

Step: 3

blur-text-image_3

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

Oracle Autonomous Database In Enterprise Architecture

Authors: Bal Mukund Sharma, Krishnakumar KM, Rashmi Panda

1st Edition

1801072248, 978-1801072243

More Books

Students also viewed these Databases questions