Question: In C ++ write a code following these guidelines: Part 2 In vector algebra we define a three dimensional vector v to be a on
In C ++ write a code following these guidelines:

Part 2

In vector algebra we define a three dimensional vector v to be a on ordered triple v (x, y, z) where x, y and z are real numbers. We also define vector addition to be component wise this means that v (s, t, u) and w (x, y, z) then v w (s+x, t+y, u+z). 1. Create a new vector class in C++ that has a constructor that initializes its instances to (0, 0, 0). 2. Add set Components function that will mutate (modify) the vector instance and set its components to the three parameters x, y, z passes to the function respectively. 3. Add an add function add(v) that adds v to the current vector. 4. Add a display function that displays the vector as triple (x, y, z) 5. Write a main function that creates two instances and correctly add them display all three vectors. My Complex class should serve as a good guideline
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
