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
‘#wsq14’ Articles at TC101 Fall 2015 https://kenscourses.com/tc101fall2015 Introduction to Programming Python and C++ Thu, 26 Nov 2015 05:49:37 +0000 en hourly 1 https://creativecommons.org/licenses/by/4.0/ WSQ14 – Estimating e https://kenscourses.com/tc101fall2015/2015/wsq14-estimating-e-12/ Thu, 26 Nov 2015 05:49:37 +0000 http://finntec.wordpress.com/?p=126 Here you can find my code for WSQ14:

https://github.com/finntec/wsq14.git

]]>
https://creativecommons.org/licenses/by/4.0/
WSQ14: Estimating e https://kenscourses.com/tc101fall2015/2015/wsq14-estimating-e-11/ Thu, 26 Nov 2015 05:42:40 +0000 http://ivancortes96.wordpress.com/?p=160 This was an easy WSQ, Thanks to the help of my buddy Rene

Here is my code:

https://github.com/cortesivan96/WSQs/blob/master/Number%20E%20(WSQ14)

 

 

]]>
https://creativecommons.org/licenses/by/4.0/
Estimating e https://kenscourses.com/tc101fall2015/2015/estimating-e-5/ Thu, 26 Nov 2015 05:16:17 +0000 http://saldabal.wordpress.com/?p=170 Continue Reading →]]> This task was not that hard. We had to make a function that computes an estimation of e, which is a number very used in finances. The trick was our number must have the accuracy given by the user.

Here is my code:

https://github.com/sabaldaba/TC101/blob/master/Estimating_e

]]>
https://creativecommons.org/licenses/by/4.0/
eSTIMATING E- #WSQ14 #TC1017 https://kenscourses.com/tc101fall2015/2015/estimating-e-wsq14-tc1017/ Thu, 26 Nov 2015 04:51:20 +0000 https://eduardotorresb.withknown.com/2015/estimating-e--wsq14-tc1017

It was a little difficult and had to look for help with other people from the course

Here's the link: WSQ14

]]>

It was a little difficult and had to look for help with other people from the course

Here’s the link: WSQ14

]]>
https://creativecommons.org/licenses/by/4.0/
WSQ #14 https://kenscourses.com/tc101fall2015/2015/wsq-14-4/ Thu, 26 Nov 2015 03:51:09 +0000 http://chrisorozco97.wordpress.com/?p=189 ]]> Here’s my WSQ #14
It was easy this time because I did my Quiz 11 before and it was the same thing XP

1

Code: wsq14

]]>
https://creativecommons.org/licenses/by/4.0/
WSQ14 https://kenscourses.com/tc101fall2015/2015/wsq14-24/ Thu, 26 Nov 2015 03:43:28 +0000 http://giorgio6859.wordpress.com/?p=108 ]]> Este WSQ está más difícil de lo que parece. Tuve que apoyarme mucho en Ken para hacerlo. Ya lo había hecho para un quiz pero me había equivocado porque entendí mal la forma en la que se daba la precisión. Ken me ayudó a entenderlo y pues aquí está el código que hice.

//WSQ14 Euler
#include <iostream>
#include <cmath>
using namespace std;

float fact (float e) {
int q,w;
q = 0;
w = 1;
while (q<e) {
w = w*(q+1);
q = q+1;}
return w;}

// x=número de factorial al que llegará el denominador
int main(){
cout<<“¿Con qué precición quieres el número de euler?”<<endl;
float x;
cin>>x;
int i=1;
float penu;
float s=1;
do{
penu=s;
s=s+1/fact(i);
i=i+1;
} while (abs(s-penu)>x);

cout<<“El número de Euler es “<<s<<endl;
return 0;}

]]>
https://creativecommons.org/licenses/by/4.0/
WSQ14 https://kenscourses.com/tc101fall2015/2015/wsq14-23/ Thu, 26 Nov 2015 02:35:18 +0000 https://vanessabaeza.withknown.com/2015/wsq14

Here is my code to wsq14, hate euler, love euler, our relationship is complicated 3

My code in github: https://github.com/VanessaBaeza17/wsq14/blob/master/code

]]>

Here is my code to wsq14, hate euler, love euler, our relationship is complicated 3

My code in github: https://github.com/VanessaBaeza17/wsq14/blob/master/code

]]>
https://creativecommons.org/licenses/by/4.0/
WSQ14 https://kenscourses.com/tc101fall2015/2015/wsq14-18/ Thu, 26 Nov 2015 00:20:49 +0000 http://alansprogramming.wordpress.com/?p=265 ]]> 14WSQ

2.7176… almost there… almost there. Photo in Creative Commons. Link: https://www.flickr.com/photos/ilike/4920776953/

After having done the #Quiz11, this WSQ was one of the easier ones, even if it took a lot of digging in StackOverflow and cplusplus.com, looking at details of semi-finished code from beginners (like me, obviously) with the same problems as myself.

e’s an awesome number, check the GitHub code link for the WSQ.

]]>
https://creativecommons.org/licenses/by/4.0/
#WSQ14 https://kenscourses.com/tc101fall2015/2015/wsq14-16/ Wed, 25 Nov 2015 22:33:40 +0000 http://brayangcblog.wordpress.com/?p=160 ]]> 5447376164_b76d2b84c9_z

Foto: https://flic.kr/p/9ine9G

En este WSQ tuve algunos problemas porque al momento de hacer la función me equivocaba en los valores de la variable, pero le pedi ayuda a un amigo y lo arregle. Aquí esta mi código:

https://github.com/BrayanGc/Codigos/blob/master/EstE.cpp

]]>
https://creativecommons.org/licenses/by/4.0/
#WSQ14 https://kenscourses.com/tc101fall2015/2015/wsq14-15/ Wed, 25 Nov 2015 21:52:41 +0000 http://alan46bc.wordpress.com/?p=84 ]]> #include <iostream>
#include <cmath>
using namespace std;

long double precision( int n, long double e)
{
if (n == 0){
return ceil (e);
} else if (n == 1){
return floor ((e * 10 ) + 0.5) / 10;
}else if ( n ==2){
return ceil((e * 100 ) + 0.05) / 100;
} else if ( n == 3){
return floor ((e * 1000 ) + 0.005) / 1000;
} else if (n == 4){
return floor ((e * 10000 ) + 0.0005) / 10000;
}else {
return e;
}
}

long double calculate_e (){
long double e = 2.5;
long double c = 2.0;
long double d, factorial;
for (int i=0;i<5;i++){
c = c + 1.0;
d = c;
factorial = c;
while (d>1){
d = d – 1.0;
factorial = factorial * d;
}
e = e + (1.0/factorial);
}
return e;
}

int main(){
int n;
cout << “numero de decimales que desees entre 0 y 5″<< endl;
cin>> n;
long double e = calculate_e ();
long double e2 = precision(n, e);
cout << e2 << endl;
return 0;
}screen4

This one was really difficult, at first I didn’t understand what to do but I read the link that was on the wsq and read other post to understand what to do.

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