Tag Archives: #quiz10

QUIZ 10

 

For quiz 10 I finally learned how to use vectors. (which i did not do during the rest of the semester.) I had to read a bunch of tutorials, but i just did not understand a thing. At the end, I found a couple videos that helped me through it.

 

Here´s my gitHub link with my files.

 

QUIZ 10

 

and here are the youtube links.

 

Vectors

vectors as parameters in functions

 

Cheers.

Quiz 10

#Quiz10 #TC1014 #LaNieveDeColimaExploto #PenguinLove #TepaEsLaLey #QueTeReviento

Quiz 10

                                                                                                                                    @PablO_CVi

Question 1: https://github.com/PablOCVi/Quiz-10/blob/master/q1.py

Create a function called findThrees that receives 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.

Question 2: https://github.com/PablOCVi/Quiz-10/blob/master/q2.py

Create a function called dotProduct that receives two vectors/arrays/lists of numbers (say v1 and v2). The function returns what is the dot product of the two vectors/arrays/lists.

 

Note1: If using vectors/lists, you must check that both vectors are the same size. If not, your function should print an error message (“Not same size vectors”) and return -1
Note2: If using arrays, you need to pass a third parameter which is the size of the arrays, you can assume both arrays are that same size.

QUIZ#10

Hey! Check my code for the question 2 of the #Quiz10 on Github https://github.com/Auralgo/-TC1017/blob/master/quiz102.cpp I got some information from this page http://www.lawebdelprogramador.com/foros/Dev-C/1462757-Ayuda-con-un-programa-que-calcule-el-producto-punto-de-dos-vectores-interviniendo-un-vector.html but the problem

Hey! Check my code for the question 2 of the on Github https://github.com/Auralgo/-TC1017/blob/master/quiz102.cpp I got some information from this page http://www.lawebdelprogramador.com/foros/Dev-C/1462757-Ayuda-con-un-programa-que-calcule-el-producto-punto-de-dos-vectores-interviniendo-un-vector.html but the problem with that code is that it allows you to do a dot product of non same size vectors.

#Quiz10

Hi people, finally i finish the quiz number 10!!!, in my opinion this quiz has been so difficult but in the internet, it can help us!!! 🙂 this is my code on Github

https://github.com/Xochitl96/WSQ/blob/master/Quiz10.cpp

Quiz #10

Check my Question 1 of the #Quiz10 on my Github! https://github.com/Auralgo/-TC1017/blob/master/quiz10.cpp #TC1017. I got some help for the implementation of the arrays by my DEAR

Check my Question 1 of the on my Github! https://github.com/Auralgo/-TC1017/blob/master/quiz10.cpp . I got some help for the implementation of the arrays by my DEAR friend Abel Chavez, you're a nerd! <3

Quiz 10

I have uploaded the source files for my to programs of my Quiz 10:

For this program I used something that isn’t very usual, the % operator. This is used to return the modulus of a division, this means the number at the left of the operator is divided by the number at the right, and the result is the residue of the first division of them. This way you can know if a number is evenly divisible by another. Whenever a number is evenly divisible it module returns 0.

So I check the module and if it is cero we add the number to the total that is afterward printed in the console.

The next program first verifies that the lengths of the lists provided are equal, if they are not there’s no calculation to compute so we only print out the error message and return a -1. If they are we take the element of the same index of both lists, calculate the product of them and then add it to the total, which is later on returned by the function.

This is my of my