Question: EGR 1 2 5 Computer Programming for Engineers Module 8 - Object Oriented Programming ( OOP ) HW 8 Create a video solution for the

EGR 125 Computer Programming for Engineers
Module 8- Object Oriented Programming (OOP)
HW 8
Create a video solution for the following problem. Start with the requirements (input -
data manipulation/calculations - output). Then explain your source code line by line
and run the code with the inputs given below. You must include pseudocode. The
video should be no longer than 10 min . Upload video link to Canvas.
Repeat HW 7 using an OOP approach. Create a linear regression class with a minimum
of 5 user defined functions:
Populate two vectors( X[],Y[] using data in lin_reg.txt, you must use file input.
Multiply two vectors
Square a vector
Calculate the slope of the best fit line
Calculate the y-intercept of the best fit line
The force (Y) and displacement (x) data is in the file lin_reg.txt. You can not modify
lin_reg.txt, you must use it as is.

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 Finance Questions!