Question: Roughness is an important parameter in mechanical systems. Among other things, it is used in determining friction between mating surfaces. It generally costs more money

Roughness is an important parameter in mechanical systems. Among other things, it is used in determining friction between mating surfaces. It generally costs more money to make a surface smoother. Mechanical and manufacturing engineers use three principle measures of the roughness of the surface of an object. All are based on measurements at evenly spaced intervals along the surface as diagrammed here and labeled a, b, c. roughness data Roughness is an important parameter in mechanical systems. Among other things, it Values above the centerline are positive; values below are negative. The three roughness indicators are: Arithemetic mean value: Ra = (|a| + |b| + |c| + ....) / n Root-mean-square average: Rq = sqrt[( a2 + b2 + c2 + ...)] Maximum roughness height: hmax = distance from the bottom of deepest trough to top of highest peak Instructions: Write a modularized C++ program that does the following: Reads data from the input file called surface.txt (see below for this file) Calculates the three roughness parameters. Generates a report. (see below for what this should look like) Hints: You will need to use a single dimensional array in order to completely modularize your program. Your main program should just invoke three functions: an input function, a processing function and an output function. Turn in a text file that has your source code and program output making sure that the formatting is up to C++ standards and professional in appearance. surface.txt Roughness Data File Data values are in micrometers -4.1 -2.2 -0.5 1.2 3.3 4.6 5.1 2.1 0.2 -3.6 -4.1 0.2 0.5 2.2 4.1 -0.2 -1.2 -3.3 -4.6 -5.0 -2.2 -1.1 0.8 3.2 -0.1 -4.8

Output Report: Surface Roughness Data (micrometers) -4.1 -2.2 -0.5 1.2 3.3 4.6 5.1 2.1 0.2 -3.6 -4.1 0.2 0.5 2.2 4.1 -0.2 -1.2 -3.3 -4.6 -5.0 -2.2 -1.1 0.8 3.2 -0.1 -4.8

Roughness Parameters Arithmetic Mean = x.x mm Root-Mean-Square = x.x mm Maximum Roughness = x.x mm

f g h i j k a b c Center line Figure from Serope Kalpakjian, Manufacturing Engineering and Technology, 3rd ed. (Reading, Mass. Addison-Wesley, 1995), p.962

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!