Question: need help on c++ program please. here's the code given: 1 Purpose In this assignment we examine the use of arrays and references in C++computations.
need help on c++ program please.


here's the code given:



1 Purpose In this assignment we examine the use of arrays and references in C++computations. Our focus is the computation of the parameters (slope and dependent axis intercept) of a linear least square line fit to a set of (x, y) data pairs. 2 Procedure Your boss has started a program design which is to achieve the following task: 1. a. Given n pairs of (ri, H) data, compute the parameters of the linear least square best fit line ( yi-mritb ) using the following formulas (note, the symbol describes the sum of all elements in the argument which follows, eg. 1iyi is the sun of the products of each data pair, y) 2. The main test program (LLSquare.cpp), a header file (LLParams.h), and a second header file (DisplayArray.h) are already provided for you, by your very kind, but very busy, boss. These are available on the WyoCourses Program 09 assignment. All that remains is to write the LLParams.cpp source code to implement the computation of the parameters m and b and test the complete program 3. This means that you have to write the function LLParams() that implements the above formula. Make sure that you use the prototype on LLParams.h as a starting point. If you do this correctly, you will be able to compile and run the program after having only added that one file/function. And the result will be EXACTLY like that shown below
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
