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
‘#WSQ09’ Articles at TC101 Fall 2015 https://kenscourses.com/tc101fall2015 Introduction to Programming Python and C++ Mon, 23 Nov 2015 19:14:25 +0000 en hourly 1 https://creativecommons.org/licenses/by/4.0/ Fact! You’re reading this.- WSQ09 https://kenscourses.com/tc101fall2015/2015/fact-youre-reading-this-wsq09/ Mon, 23 Nov 2015 19:14:25 +0000 http://andressava.wordpress.com/?p=124 ]]> Hello There, for this WSQ we need the use of a accumulator which multiplies it self and the value can add him self is not much.

That’s it and have a nice week.

The Source Code

flickr photo by Daniel Hoherd
https://www.flickr.com/photos/warzauwynn/2794764081/
Some Rights Reserved

]]>
https://creativecommons.org/licenses/by/4.0/
Factorial Calculator https://kenscourses.com/tc101fall2015/2015/factorial-calculator-9/ Sat, 21 Nov 2015 10:31:47 +0000 http://saldabal.wordpress.com/?p=110 Continue Reading →]]> For this task i had to make a program that calculates the factorial of a given number, and of course to create a function.

The code i wrote is this: https://github.com/sabaldaba/TC101/blob/master/Wsq09-Factorial

The program at the end also gives you the option of doing another operation or to end, this was done thanks to a while loop while the factorial calculator was done with a for loop since in there i knew a specific range.

Hope you like it!

 

]]>
https://creativecommons.org/licenses/by/4.0/
WSQ09 https://kenscourses.com/tc101fall2015/2015/wsq09-39/ Thu, 12 Nov 2015 15:44:52 +0000 http://estebanpg.wordpress.com/?p=35 https://github.com/estebanpinal/WSQ/blob/master/WSQ09

]]>
https://creativecommons.org/licenses/by/4.0/
Factorial … https://kenscourses.com/tc101fall2015/2015/factorial/ Sat, 31 Oct 2015 03:55:24 +0000 http://juansalvadorfernandez.wordpress.com/?p=73 ]]> I had a very har time with this exercise, since at the time I had no idea of how to use loops, later I began to understand how stuff works and stopped getting stuck in things like this, though I still preffer to do things without recursión, because it makes finding mistakes easyer for me.

asd asdf

]]>
https://creativecommons.org/licenses/by/4.0/
WSQ09 https://kenscourses.com/tc101fall2015/2015/wsq09-36/ Fri, 30 Oct 2015 14:53:57 +0000 http://alansprogramming.wordpress.com/?p=118 Continue reading WSQ09 ]]> You should follow the leader… and multiply yourself times them.

Follow the leader

If she went in, so can I… “Duck Tales” by Thomas Abbs. Link: https://www.flickr.com/photos/tabsinthe/5447936283

Factorials are one of the most fascinating parts of math, but I for one couldn’t wrap my head around how to do a code for this one. Credit to my partner Samantha Rivera for showing me an easy way to do it through recursion. I’ll try and do it with a loop in a future edit.

Enjoy the link! WSQ 9.

]]>
https://creativecommons.org/licenses/by/4.0/
WSQ09 – Factorial Calculator https://kenscourses.com/tc101fall2015/2015/wsq09-factorial-calculator-16/ Thu, 29 Oct 2015 02:17:54 +0000 http://andreandradec.wordpress.com/?p=184 ]]> Ken helped me a lot to do this when he explained us in class and with his video…

Also with a video on Youtube: https://www.youtube.com/watch?v=6cTP_ls_DLY

Here is my code: https://github.com/Andreandc/TC1017/blob/master/WSQ09

gesto2

]]>
https://creativecommons.org/licenses/by/4.0/
#WSQ09 https://kenscourses.com/tc101fall2015/2015/wsq09-34/ Thu, 29 Oct 2015 01:52:29 +0000 http://giorgio6859.wordpress.com/?p=61 ]]> Jellyfish

// Factorial Calculator
#include <iostream>
using namespace std;

int fact (int q, int e, int w) {
q = 0;
w = 1;
cout << “Dame un número positivo ” <<endl;
cin >> e;
while (q<e) {
w = w*(q+1);
q = q+1;}
cout <<“El factorial de ” << e << ” es “;
return w;}

int main () {
char t=’y’;
int x;
int y;
int z;

while (t==’y’) {
cout << fact (x,y,z) <<endl <<endl;
cout <<“Si desea calcular otro factorial, teclee y ” << endl;
cout <<“Si no lo desea, teclee n ” << endl;
cin >> t;}
if (t==’n’){
cout <<“Que tenga un excelente y extraordinario día ” <<endl;}
else
{cout <<“Sólo puedes teclear la letra ‘y’ o la letra ‘n’ ” <<endl;
cout <<“Por favor vuelva a correr el programa”<<endl;}
return 0;}

]]>
https://creativecommons.org/licenses/by/4.0/
WSQ09 – Factorial Calculator https://kenscourses.com/tc101fall2015/2015/wsq09-factorial-calculator-15/ Thu, 29 Oct 2015 01:29:13 +0000 http://dragv.wordpress.com/?p=116 ]]> Made a factorial calculator using a loop. Here’s the code:

qs9c

And here’s the test run:

Screenshot from 2015-10-28 19:26:29

]]>
https://creativecommons.org/licenses/by/4.0/
WSQ09 https://kenscourses.com/tc101fall2015/2015/wsq09-32/ Thu, 29 Oct 2015 01:27:23 +0000 http://5nbppkkyj.wordpress.com/?p=122 ]]> So this is simple factorial calculator, it was kind of easy to do.
Screen Shot 2015-10-28 at 5.55.54 PM

This is factorialcalc.py in action!Screen Shot 2015-10-28 at 5.55.10 PM

]]>
https://creativecommons.org/licenses/by/4.0/
Factorial Calculator https://kenscourses.com/tc101fall2015/2015/factorial-calculator-6/ Thu, 29 Oct 2015 01:12:00 +0000 http://kenscourses.com/tc101fall2015/?guid=9079688193caac8a436abdbec2ea7f4e

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