There is a code segment written for you that reads the following for two different three dimensional (3D) vectors (vector1 and vector2):

  1. Define a struct with three fields, and name:
    1. Name: Vector3D
    2. Fields: three integers x, y, and z (representing the three dimensions).
  2. Write a code segment which performs an elementwise addition and an elementwise multiplication operation on two Vector3D structs (vector1 and vector2). The result of the addition operation should be kept in sumVector, and the result of the multiplication operation should be kept in productVector.

Examples:
INPUT OUTPUT
3 5 7
2 4 -1
5 9 6
6 20 -7
1 2 1
2 3 2
3 5 3
2 6 2
5 15 7
0 0 0
5 15 7
0 0 0


Important issues about all exams/projects/quizzes: