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
‘#WSQ05’ Articles at TC101 Fall 2015 https://kenscourses.com/tc101fall2015 Introduction to Programming Python and C++ Thu, 26 Nov 2015 01:50:26 +0000 en hourly 1 https://creativecommons.org/licenses/by/4.0/ wsq05 https://kenscourses.com/tc101fall2015/2015/wsq05-24/ Thu, 26 Nov 2015 01:50:26 +0000 http://ilkapython.wordpress.com/?p=160 I already did this hw but i just realized that ken didnt give me the points for this one so im reuploading it.

Temperature code
Temperature result

]]>
https://creativecommons.org/licenses/by/4.0/
WSQ5: Temperature https://kenscourses.com/tc101fall2015/2015/wsq5-temperature/ Sun, 25 Oct 2015 23:38:41 +0000 https://ivancortes96.wordpress.com/?p=27 Seguir leyendo WSQ5: Temperature ]]> This WQS was a little bit hard for me. the part of converting Farenheit to Celcuis was easy. The If and Else part was the hard one. At first I  did’t knew how to use the Conditionals, but after reading about it in the book and looking in some web site, I understand it and from there on it was easy.

Link to website that explains conditionals:

http://www.cprogramming.com/tutorial/lesson2.html

Link to the code:

https://github.com/cortesivan96/WSQs/blob/master/Temperature

]]>
https://creativecommons.org/licenses/by/4.0/
WSQ05 https://kenscourses.com/tc101fall2015/2015/wsq05-20/ Mon, 12 Oct 2015 14:48:03 +0000 http://estebanpg.wordpress.com/?p=20 https://github.com/estebanpinal/WSQ/blob/master/WSQ05

]]>
https://creativecommons.org/licenses/by/4.0/
WSQ05 – Temperature https://kenscourses.com/tc101fall2015/2015/wsq05-temperature-16/ Thu, 08 Oct 2015 22:22:31 +0000 http://finntec.wordpress.com/?p=35 ]]> For this WSQ, again, those Python 3 programming examples where really useful.

This is my code:

tempF = float(input("Give me a temperature in Fahrenheit. "))

tempC = float( 5.0 * (tempF - 32) / 9.0)

print("The temperature in Celsius is",tempC)

if tempC <= 0:
    print("Water freezes at this temperature.")
elif 0 < tempC < 100:
    print("Water is liquid at this temperature.")
else:
    print("Water boils at this temperature.")

]]>
https://creativecommons.org/licenses/by/4.0/
WSQ05 https://kenscourses.com/tc101fall2015/2015/wsq05-19/ Mon, 05 Oct 2015 23:51:52 +0000 http://alansprogramming.wordpress.com/?p=69 Continue reading WSQ05 ]]> What was the temperature again?

Temperature

Might be a little too cold for me down there…

We are going to see how well we’ve understood the “if” and “else” conditionals, you know, those pesky words from fifth grade Grammar:

WSQ4

First up we have the code. Notice that there is a void type function before the main function. This was used by me in order to see if I knew how to correctly use those, and it turned out well, but the code can do without a void type function, having the “if” and “else” conditionals inside the main funciton.

WSQ4 cyg

As usual, we compile in Cygwin to check for any mistakes and happily find out there are none, giving the program the value 289 as Fahrenheit temperature.

WSQ4 cygrun1

It does work! We get the conversion from Fahrenheit to Celsius and a message indicating that water reaches its boiling point at this temperature. Then we try with a lower value and get a message informing us that this is too low for water to become a gas.

Water

Water wonderful picture! “I <3 Water” by Derek Gavey. Link: https://www.flickr.com/photos/derekgavey/5599832932/

]]>
https://creativecommons.org/licenses/by/4.0/
WSQ05 https://kenscourses.com/tc101fall2015/2015/wsq05-21/ Mon, 05 Oct 2015 23:51:52 +0000 https://alansprogramming.wordpress.com/?p=69 Continue reading WSQ05 ]]> What was the temperature again?

Temperature

Might be a little too cold for me down there…

We are going to see how well we’ve understood the “if” and “else” conditionals, you know, those pesky words from fifth grade Grammar:

WSQ4

First up we have the code. Notice that there is a void type function before the main function. This was used by me in order to see if I knew how to correctly use those, and it turned out well, but the code can do without a void type function, having the “if” and “else” conditionals inside the main funciton.

WSQ4 cyg

As usual, we compile in Cygwin to check for any mistakes and happily find out there are none, giving the program the value 289 as Fahrenheit temperature.

WSQ4 cygrun1

It does work! We get the conversion from Fahrenheit to Celsius and a message indicating that water reaches its boiling point at this temperature. Then we try with a lower value and get a message informing us that this is too low for water to become a gas.

Water

Water wonderful picture! “I <3 Water” by Derek Gavey. Link: https://www.flickr.com/photos/derekgavey/5599832932/

]]>
https://creativecommons.org/licenses/by/4.0/
#WSQ05 Temperature https://kenscourses.com/tc101fall2015/2015/wsq05-temperature-14/ Fri, 18 Sep 2015 19:16:42 +0000 http://giorgio6859.wordpress.com/?p=22 ]]> 18276704299_a11899b889_o

Para este código me sirvió mucho un curso de programación básica que tomé en prepa. Aunque era en python, se parece mucho en el sentido lógico y algo en sintaxis. En el código , en la parte de la condición, pude haber simplificado la fórmula para los grados celsius en una variable, pero como de todos mods así funciona bien, decidí dejarlo  así.

Este fue mi código:

// WSQ05 Fahrenheit to Celsius
#include <iostream>
using namespace std;
int main() {
double x;
cout <<“Dame la temperatura en Fahrenheit ” <<endl;
cin >>(x);
cout << “La temperatura en Celsius es ” <<(5*(x-32)/9) <<endl;
if (5*(x-32)/9<100)
cout <<“El agua no ebulle a esta temperatura” <<endl;
else
cout <<“El agua ebulle a esta temperatura” <<endl;
return 0;
}

]]>
https://creativecommons.org/licenses/by/4.0/
Temperature https://kenscourses.com/tc101fall2015/2015/temperature-8/ Fri, 18 Sep 2015 04:06:00 +0000 http://kenscourses.com/tc101fall2015/?guid=553df8b5656bd54bfd9445b45b980c8a This the code of a program that converts a given temperature from Fahrenheit to Celcius and vice versa:


This is what happens when you run it and choose a temperature in fahrenheit:


This is what happens when you give a temperature in celcius:

]]>
https://creativecommons.org/licenses/by/4.0/
#WSQ05 https://kenscourses.com/tc101fall2015/2015/wsq05-16/ Fri, 18 Sep 2015 03:52:43 +0000 http://alan46bc.wordpress.com/?p=27 ]]> This one was easy because I did it only by reading the book.

#include <iostream>
using namespace std;

int main(){

double x;
cout << “Introducir grados farenheitn”;
cin >> x;
double y = (5.0/9.0) * (x – 32.0);
cout << “La temperatura es = ” << y << ” C°” << “n”;
if (y >= 100.0){
cout << “El agua es vapor”;}
else if (y <= 0.0){
cout << “El agua es solida”;}
else if (y){
cout << “El agua es liquida”;}
return 0;
}

This is the program.

Termometro gigante en la playa de Gijon

https://www.flickr.com/photos/reservasdecoches/

]]>
https://creativecommons.org/licenses/by/4.0/
#WSQ05 https://kenscourses.com/tc101fall2015/2015/wsq05-22/ Fri, 18 Sep 2015 03:52:43 +0000 https://alan46bc.wordpress.com/?p=27 ]]> This one was easy because I did it only by reading the book.

#include <iostream>
using namespace std;

int main(){

double x;
cout << “Introducir grados farenheitn”;
cin >> x;
double y = (5.0/9.0) * (x – 32.0);
cout << “La temperatura es = ” << y << ” C°” << “n”;
if (y >= 100.0){
cout << “El agua es vapor”;}
else if (y <= 0.0){
cout << “El agua es solida”;}
else if (y){
cout << “El agua es liquida”;}
return 0;
}

This is the program.

Termometro gigante en la playa de Gijon

https://www.flickr.com/photos/reservasdecoches/

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