Warning: The magic method Slickr_Flickr_Plugin::__wakeup() must have public visibility in /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php on line 152

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831
{"id":11386,"date":"2015-04-23T07:43:32","date_gmt":"2015-04-23T12:43:32","guid":{"rendered":"http:\/\/kenscourses.com\/tc101winter2015\/?page_id=11386"},"modified":"2015-04-23T10:07:24","modified_gmt":"2015-04-23T15:07:24","slug":"quiz10","status":"publish","type":"page","link":"https:\/\/kenscourses.com\/tc101winter2015\/quiz10\/","title":{"rendered":"Quiz#10"},"content":{"rendered":"

Wish Lists<\/h2>\n
\"<small><a<\/a>

flickr photo<\/a> shared by Pedro Vezini<\/a> under a Creative Commons ( BY-NC-SA ) license<\/a> <\/small><\/p><\/div>\n

Obviously to implement with vectors (or arrays if you like) for the C++ groups and lists for the Python groups. Feel free to do multiple versions for extra fun, I am sure that is what these stormtroopers are doing now.<\/p>\n

Perhaps you should do the same!<\/p>\n

Question 1<\/h2>\n

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.<\/span><\/span><\/p>\n

So if the vector\/array\/list was: {0,4,2,6,9,8,3,12}, the function would return 30
\nsince\u00a0 (0+6+9+3+12) is 30.<\/p>\n

Question 2<\/h2>\n

In mathematics, the dot product, or scalar product (or sometimes inner product in the context of Euclidean space), is an algebraic operation that takes two equal-length sequences of numbers (usually coordinate vectors) and returns a single number.
\nAlgebraically, it is the sum of the products of the corresponding entries of the two sequences of numbers”<\/span><\/span><\/p><\/blockquote>\n

(source http:\/\/en.wikipedia.org\/wiki\/Dot_product<\/a> )<\/span><\/span><\/p>\n

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.<\/p>\n

Note1: If using vectors\/lists, you must check that both vectors are the same size. If not, your function should print an error message (\u201cNot same size vectors\u201d) and return -1
\nNote2: 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.<\/p>\n

Example. If the input is {2,4,5,6} and {1,2,3,4} the result will be 49 since
\n(2*1)+(4*2)+(5*3)+(6*4) is 49<\/p>\n

Scoring<\/h2>\n