Question
C++ Given a one dimensional array with 15 storage locations, write a program that will fill the first array with the 15 values below (use
C++
Given a one dimensional array with 15 storage locations, write a program that will fill the first array with the 15 values below (use hardcoding), create a new array with 15 storage locations, fill this new array using the following formula, and then output the original array and the new array side by side in two columns.
Values: 12.14, 11.12, 12.65, 13.6, 17.1, 15.33, 9.75, 11.2, 12.43, 16.41, 10.49, 12.9, 8.6, 16.87,12.32
Fi =( F i-1 + Fi + Fi+1)/3
This is a technique called SMOOTHING and is used to reduce the effect of random errors in experimental data. Number your data points 0 to N and let i=this number
Now, F1new =( F0 + F1 + F2 )/3 = ( 12.14 + 11.12 + 12.65)/3
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started