I just finished quiz 10. The first question asked to create a a function called findThrees that recieves as a parameter a vector/array/list of numbers and returns the sum of all numbers in that vector/array/list that are evenly divisible by 3. Here’s a screenshot of my code running so that you can appreciate better how this program works.
The second question asked to create a function called dotProduct that recieves two vectors/arrays/lists of numbers (say v1 and v2). The function returns what the dot product of the two vectors/arrays/lists is. Here’s a screenshot of my code running so that you can appreciate better how this program works.
Nevertheless, I’ll leave here the links to my GitHub repository where i have my code for both q1 and q2. Feel free to have a look at them:
q1 : https:/
q2: https:/
Quiz 10 by Jorge Padilla is licensed under a Creative Commons Attribution 4.0 International License.