Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Program # 2 : SURFACE ROUGHNESS Engineers use several measures of the roughness of a surface of an object. These measures are based on measurements

Program # 2 : SURFACE ROUGHNESS

Engineers use several measures of the roughness of a surface of an object. These measures are based on measurements of deviations of the actual surface from its intended shape (see the visual). These deviations are provided in the file surface.txt. You must use it and also submit it under the name xxxx3padata.txt. Note that the first line of the file starts with the numbers. Each number represents a measurement ( d1, d2, d3, .) at a different point of the surface. Positive values indicate location above the intended reference surface and negative values below the reference. There are n=56 measurements

The main measures of roughness are;

arithemtic mean value : Ra = (Id1I + Id2I + Id3I+...)/n

Root -mean -square(RMS) average: Rq = square-root(((d1)^2+(d2)^2+(d3)^2+)/n)

Maximum roughness height: Rm = distance between lowest trough to highest peak

Write a program in C++ that reads these measurements from the file surface.txt and computes these three measures.

Surface.txt file is

-4.1 -2.2 -0.5 1.2 3.3 4.6 5.1 2.1 5.7 0.2 -8.1 3.6 -3.1 1.2 0.5 2.2 4.1 2.5 7.2 -2.3 5.1 7.3 4.5 1.7 -0.2 -1.2 -3.3 -4.6 -5.0 -2.2 -1.1 0.8 3.2 -0.1 -4.8 7.2 -4.7 1.2 2.3 0.5 5.7 -0.2 5.1 4.6 -3.1 1.2 0.5 5.2 4.1 2.5 7.2 -2.3 5.1 7.3 4.5 1.7

The above numbers are measurements of depth deviations ( in microns )from a reference position. There are 56 measurements. One micron is 1.0e-06 of a meter or 1/25.4 of a mil. A mil is a thousandth of an inch.

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

Murach's SQL Server 2012 For Developers

Authors: Bryan Syverson, Joel Murach, Mike Murach

1st Edition

1890774693, 9781890774691

Students also viewed these Databases questions

Question

Explain the motivation sequence.

Answered: 1 week ago

Question

What are Decision Trees?

Answered: 1 week ago

Question

What is meant by the Term Glass Ceiling?

Answered: 1 week ago