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":12644,"date":"2015-05-03T21:15:26","date_gmt":"2015-05-04T02:15:26","guid":{"rendered":"https:\/\/olafsamael.withknown.com\/2015\/quiz10"},"modified":"2015-05-03T21:15:26","modified_gmt":"2015-05-04T02:15:26","slug":"quiz10-21","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101winter2015\/2015\/quiz10-21\/","title":{"rendered":"#Quiz10"},"content":{"rendered":"
\n

question 1:<\/strong><\/p>\n

#include<\/a> <iostream><\/p>\n

#include<\/a> <vector><\/p>\n

using namespace std;<\/p>\n

 <\/p>\n

int findThrees(vector<int>list){<\/p>\n

int modulo;<\/p>\n

int suma=0;<\/p>\n

int num=0;<\/p>\n

 <\/p>\n

do{<\/p>\n

modulo=list[num]%3;<\/p>\n

if(modulo==0){<\/p>\n

    suma=list[num]+suma;<\/p>\n

    }<\/p>\n

    num++;<\/p>\n

} while(num< list.size());<\/p>\n

 <\/p>\n

return suma;<\/p>\n

}<\/p>\n

 <\/p>\n

int main() {<\/p>\n

vector<int>list;<\/p>\n

int tam;<\/p>\n

int num;<\/p>\n

 <\/p>\n

cout<<“Dame una lista de numeros y solo sumare los numeros que sean divisibles entre 3.”<<endl;<\/p>\n

cout<<“Dame la cantidad de datos que tendra tu lista: “;<\/p>\n

cin>>tam;<\/p>\n

 <\/p>\n

for (int n=0; n<tam; n++){<\/p>\n

cout<<“Dame un numero: “;<\/p>\n

cin>>num;<\/p>\n

list.push_back(num);<\/p>\n

}<\/p>\n

cout<<“La suma es: “<<findThrees(list)<<endl;<\/p>\n

return 0;<\/p>\n

}<\/p>\n

 <\/p>\n

Question 2:<\/strong><\/p>\n

 <\/p>\n

#include<\/a> <iostream><\/p>\n

#include<\/a> <vector><\/p>\n

using namespace std;<\/p>\n

 <\/p>\n

int dotProduct(vector<int>v1, vector<int>v2){<\/p>\n

int multi=0;<\/p>\n

 <\/p>\n

for (int n=0; n<v1.size(); n++)<\/p>\n

{<\/p>\n

multi=v1[n]*v2[n]+multi;<\/p>\n

}<\/p>\n

 <\/p>\n

return multi;<\/p>\n

}<\/p>\n

 <\/p>\n

int main(){<\/p>\n

vector<int>v1;<\/p>\n

vector<int>v2;<\/p>\n

int tam;<\/p>\n

int num;<\/p>\n

int tam2;<\/p>\n

int num2;<\/p>\n

 <\/p>\n

cout<<“Dame la cantidad de valores de la primer lista:(ambas listas deben tener el mismo tamano)”<<endl;<\/p>\n

cin>>tam;<\/p>\n

  for(int n=0;n<tam;n++){<\/p>\n

    cout<<“Dame un numero”<<endl;<\/p>\n

    cin>>num;<\/p>\n

    v1.push_back(num);<\/p>\n

  }<\/p>\n

 <\/p>\n

  cout<<“Dame la cantidad de valores de la segunda lista:(ambas listas deben tener el mismo tamano) “<<endl;<\/p>\n

  cin>>tam2;<\/p>\n

    for(int n=0;n<tam;n++){<\/p>\n

      cout<<“Dame un numero”<<endl;<\/p>\n

      cin>>num2;<\/p>\n

      v2.push_back(num);<\/p>\n

    }<\/p>\n

 <\/p>\n

    if (tam != tam2)<\/p>\n

    {<\/p>\n

    cout << “Error:” << endl;<\/p>\n

    cout << “-1” << endl;<\/p>\n

    }<\/p>\n

   else<\/p>\n

   {<\/p>\n

     cout<<“El resultado es : “<<dotProduct(v1,v2)<<endl;<\/p>\n

   }<\/p>\n

  return 0;<\/p>\n

}<\/p>\n

 <\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"

question 1:#include <iostream>#include <vector>using namespace std; int findThrees(vector<int>list){int modulo;int suma=0;int num=0; do{modulo=list[num]%3;if(modulo==0){    suma=list[num]+suma;  &nbsp… Continue reading →<\/span><\/a><\/p>\n","protected":false},"author":139,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3,26],"tags":[95],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/12644"}],"collection":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/users\/139"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/comments?post=12644"}],"version-history":[{"count":2,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/12644\/revisions"}],"predecessor-version":[{"id":12985,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/12644\/revisions\/12985"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/media?parent=12644"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/categories?post=12644"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/tags?post=12644"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}