I'll leave you here in my post some links that helped me to solve this. The first one was the reference from Ken's page available during our exams.
I did the quiz only with vectors and I'll do it with arrays soon and I'll upload it...
This helped me to remember how to do some interesting things with vectors, is my video for mastery23 which is creation and use of vectors.
Also the reference that Ken already give us about dot Product if you don't remember it from Fisica remedial.
And finally here is my link to the code already in GitHub
Here a picture with my terminal running the examples that Ken gave us in the post of the quiz: