The physicists at the Stimsonian Institute are incessantly working with measurements that add and subtract groups of numbers. The Institute has mobile sensors that gather data and write them to files. They have asked you to write a program to automate some of the calculations for them.
Write a program that will connect to an input file that with 6 numbers in it. Then create an array of 3 numbers that consists of the first added to the fourth number, second added to the fifth number, and third added to the sixth number from the input file (for those more math inclined, this is basically adding two vectors in Euclidean three space). Then write the resulting three numbers to another file. Be sure and prompt the user for both file names.
Extend your Part I to write a second array of three numbers to the output file. This second array is defined similarly as in Part I, but by subtracting the numbers instead of adding them (again, this is subtracting two vectors in Euclidean three space).
Create a third array and define it as the cross product of the two input vectors. Write the result to the output file.
![[Dilbert]](dilbert.gif)