Unformatted text preview: processing already entered results (do not process the pad with an outside the range measurement) (10%). 2. Then write a separate function called "myWeightedAvg" which takes the measurements of a pad as inputs and returns their weighted average (defined below) * as a floating-point variable (5%). 3. In the main program, call the "myWeightedAvg" function and print the results (in a table) on the computer screen similar to the one shown here (5%). Pad Number M1 M2 M3 Weighted Avg 1 100.o 100.0 100.0 100.0 2 50.0 10.0 20.0 56.7 … … … … … 4. Write appropriate comments for all the functions (including the main) in your program (5%). * The weighted average in the above company is defined as: n i n M wavg n i i ∑ =-= 1 ) ( . where n is the number of measurements taken from one pad (n=3) and M i is the measurement of the i th point on the pad....
View Full Document
- Three '10
- Swinburne University, Faculty of Engineering and Industrial Sciences, pad thicknesses