This is not homework, I am not in school. I graduated many years ago. This is my own project for averaging large amounts of data around 8000 numbers in each array each one a double. What I need to do is read data from simple text document file's into different arrays. Then I need to subtract the arrays of my choosing. How would I get the arrays to subtract pair by pair so the item 1 in file 1 - item 1 in file 2, and so on...and then save that data into a new array sum it and then average it. I have no idea how to do that, I know some basics but not much and cant find any info on how to do that. please help please don't post something abstract I just need answers I keep getting the run around cause no one wants to help everyones to scared to do someones else's homework. please help.
- Load the content of each document into it's own array.
- Loop through each array performing the operations as you describe saving the output of the operations to the new array as you described.
- Output the new array to a new document.
To clear something up, I try to think the best of people and I prefer to believe that you are as you describe. But some of the contributors on this site are private contractors, they do not post code for their own reasons such as liability, IP Law, or just working for free. I choose to uphold that culture out of respect for them not out of any apathy toward your problem. Now if you have any code I will gladly go through it with you step by step if need be and help you improve but this is an educational site first.