Question: C PROGRAMING! Using a structure a program to calculate the sum of two two-dimensional vectors. [Input] components of two two-dimensional plane vectors v1=(x1, y1) and
C PROGRAMING! Using a structure a program to calculate the sum of two two-dimensional vectors.
[Input] components of two two-dimensional plane vectors v1=(x1, y1) and v2=(x2, y2) in a row in the format of "x1 y1 x2 y2". [Output] sum of vectors in the format of "(x, y)", and output 1 digit after the decimal point for coordinates (note that - 0.0 cannot be output).
[input] 3.5 -2.7 -13.9 8.7 [output] (-10.4, 6.0)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
