Warning: The magic method Slickr_Flickr_Plugin::__wakeup() must have public visibility in /home/kenbauer/public_kenscourses/tc101fall2015/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/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/feed-rss2.php on line 8
‘#Quiz8’ Articles at TC101 Fall 2015 https://kenscourses.com/tc101fall2015 Introduction to Programming Python and C++ Thu, 22 Oct 2015 03:58:26 +0000 en hourly 1 https://creativecommons.org/licenses/by/4.0/ quiz 8 https://kenscourses.com/tc101fall2015/2015/quiz-8-11/ Thu, 22 Oct 2015 03:58:26 +0000 http://estebanpg.wordpress.com/?p=22 https://github.com/estebanpinal/WSQ/blob/master/q8

]]>
https://creativecommons.org/licenses/by/4.0/
Quiz 8 https://kenscourses.com/tc101fall2015/2015/quiz-8-10/ Wed, 21 Oct 2015 23:57:32 +0000 http://ivancortes96.wordpress.com/?p=20 ]]> HERE IS MY CODE FOR QUIZ 8

I AM REALLY BEHIND IN THE READING, SO THIS QUIZ WAS HARD FOR ME. I NEEDED TO ASK A FRIEND OF MINE TO HELP ME.HE EXPLAINED TO ME AND THEN IT WAS EASIER.

LINK TO CODE: https://github.com/cortesivan96/Sum-of-Squares/blob/master/Quiz%208

sxbtw

]]>
https://creativecommons.org/licenses/by/4.0/
Quiz 8 https://kenscourses.com/tc101fall2015/2015/quiz-8-13/ Wed, 21 Oct 2015 23:57:32 +0000 https://ivancortes96.wordpress.com/?p=20 ]]> HERE IS MY CODE FOR QUIZ 8

I AM REALLY BEHIND IN THE READING, SO THIS QUIZ WAS HARD FOR ME. I NEEDED TO ASK A FRIEND OF MINE TO HELP ME.HE EXPLAINED TO ME AND THEN IT WAS EASIER.

LINK TO CODE: https://github.com/cortesivan96/Sum-of-Squares/blob/master/Quiz%208

sxbtw

]]>
https://creativecommons.org/licenses/by/4.0/
QUIZ 8.This was not that hard, but I couldn’t do it at first… https://kenscourses.com/tc101fall2015/2015/quiz-8-this-was-not-that-hard-but-i-couldnt-do-it-at-first/ Wed, 21 Oct 2015 23:19:36 +0000 http://bsolisale.tumblr.com/post/131649013440

QUIZ 8.

This was not that hard, but I couldn’t do it at first because I didn’t know how to use vectors, so I had to look for some information about that. This was a short quiz. Here is my code: https://github.com/bsolisale/QUIZ-8/blob/master/Q8

]]>

QUIZ 8.

This was not that hard, but I couldn’t do it at first because I didn’t know how to use vectors, so I had to look for some information about that. This was a short quiz. Here is my code: https://github.com/bsolisale/QUIZ-8/blob/master/Q8

]]>
https://creativecommons.org/licenses/by/4.0/
Quiz #8! https://kenscourses.com/tc101fall2015/2015/quiz-8-8/ Wed, 21 Oct 2015 23:07:07 +0000 http://myfreakingcrazythoughts.wordpress.com/?p=137 Continue Reading →]]> Hello again!

For today’s quiz we had to write a code which could ask the user for undeterminated number of values and calculate the sum of the squares.

For example:

Let’s suppose that the user will introduce this values to the program:

1, 2, 3, 4, 5.

Now, what the program will do is the following:

1^1+2^2+3^3+4^4+5^5 and it will print 55

When we want to stop giving values to our program it is indicated that the user must have to type 0.

So, everything will look like this:

//Sum the Squares of an undeterminated number of values
#include <iostream>
#include <vector>
using namespace std;

int sumsquares_list (vector<int> v){
int len = v.size();
int sum = 0;
for(int i = 0; i < len; i++) {
sum= sum + (v[i]*v[i]);
}
return sum;
}

int main()
{
int c;
vector<int>v;
cout<<"Please introduce a serie of values and write 0 to finish."<<endl;//0 will be the signal to stop asking for values
cin >> c;
while(c != 0) {
v.push_back(c);
cin >> c;
}
cout<<""<<endl;
cout<<"  The sum of the squares of the numbers that you typed in is: "<<sumsquares_list(v)<<endl;
return 0;
}

And the execution of the program will look just like this:

Quiz8 execution

And, if you want to see my codes on GitHub, remember, just clic HERE.

Have an awesome week!

-The Admin

]]>
https://creativecommons.org/licenses/by/4.0/
Quiz #8! https://kenscourses.com/tc101fall2015/2015/quiz-8-16/ Wed, 21 Oct 2015 23:07:07 +0000 https://myfreakingcrazythoughts.wordpress.com/?p=137 Continue Reading →]]> Hello again!

For today’s quiz we had to write a code which could ask the user for undeterminated number of values and calculate the sum of the squares.

For example:

Let’s suppose that the user will introduce this values to the program:

1, 2, 3, 4, 5.

Now, what the program will do is the following:

1^1+2^2+3^3+4^4+5^5 and it will print 55

When we want to stop giving values to our program it is indicated that the user must have to type 0.

So, everything will look like this:

//Sum the Squares of an undeterminated number of values
#include <iostream>
#include <vector>
using namespace std;

int sumsquares_list (vector<int> v){
int len = v.size();
int sum = 0;
for(int i = 0; i < len; i++) {
sum= sum + (v[i]*v[i]);
}
return sum;
}

int main()
{
int c;
vector<int>v;
cout<<"Please introduce a serie of values and write 0 to finish."<<endl;//0 will be the signal to stop asking for values
cin >> c;
while(c != 0) {
v.push_back(c);
cin >> c;
}
cout<<""<<endl;
cout<<"  The sum of the squares of the numbers that you typed in is: "<<sumsquares_list(v)<<endl;
return 0;
}

And the execution of the program will look just like this:

Quiz8 execution

And, if you want to see my codes on GitHub, remember, just clic HERE.

Have an awesome week!

-The Admin

]]>
https://creativecommons.org/licenses/by/4.0/
Quiz #8! https://kenscourses.com/tc101fall2015/2015/quiz-8-6/ Wed, 21 Oct 2015 16:15:18 +0000 https://vanessabaeza.withknown.com/2015/quiz-8

Here is my code to quiz 8,

Programming is way more fun when you begin to actually get it.

Thanks

   

 

]]>

Here is my code to quiz 8,

Programming is way more fun when you begin to actually get it.

Thanks

   

 

]]>
https://creativecommons.org/licenses/by/4.0/
QUIZ 8 https://kenscourses.com/tc101fall2015/2015/quiz-8-5/ Wed, 21 Oct 2015 16:14:33 +0000 https://ricardonewton.withknown.com/2015/quiz-8

https://github.com/ricardonewton/TC101/blob/master/q1.cpp

]]>
https://creativecommons.org/licenses/by/4.0/
#Quiz 8 https://kenscourses.com/tc101fall2015/2015/quiz-8-3/ Wed, 21 Oct 2015 03:59:39 +0000 http://fernandazm.wordpress.com/?p=62 Quiz 8, after receiving some tutorings now it is easier to create functions with vectors!

thanks ken 🙂

Here is my code

https://github.com/fernandazm/WSQS/blob/master/Quiz%208

]]>
https://creativecommons.org/licenses/by/4.0/
#Quiz 8 https://kenscourses.com/tc101fall2015/2015/quiz-8-17/ Wed, 21 Oct 2015 03:59:39 +0000 https://fernandazm.wordpress.com/?p=62 Quiz 8, after receiving some tutorings now it is easier to create functions with vectors!

thanks ken 🙂

Here is my code

https://github.com/fernandazm/WSQS/blob/master/Quiz%208

]]>
https://creativecommons.org/licenses/by/4.0/