this is one of my practice quizzes for my upcoming test, i am having way too much trouble writing the code for it out, help on writing this code out will be appreciated
Write a C program that normalizes the vector vec[5], whose components
are in the file vec_in.dat (which you need to copy). The components
of the normalized vector are defined as the original components devided
by the norm of the vecor, which is: norm=sqrt(v[0]^2+v[1]^2+....).
Write the original and the normalized components on the screen and in
the output file vec_out.dat. Close the files.
Your solution should look like this (on the screen and in the output file):
Original Vector = [ 1.200000 -2.300000 0.530000 2.010000 -1.500000 ]