Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Step: 3

blur-text-image

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

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 19 21 2012 Proceedings Part 3 Lnai 7198

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284922, 978-3642284922

More Books

Students also viewed these Databases questions