Introduction to Programming Python and C++

Tag Archives: #WSQ05

wsq05

I already did this hw but i just realized that ken didnt give me the points for this one so im reuploading it.

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 … Seguir leyendo WSQ5: Temperature

WSQ05

https://github.com/estebanpinal/WSQ/blob/master/WSQ05

WSQ05 – Temperature

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 < […]

WSQ05

What was the temperature again? We are going to see how well we’ve understood the “if” and “else” conditionals, you know, those pesky words from fifth grade Grammar: 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 … Continue reading WSQ05

WSQ05

What was the temperature again? We are going to see how well we’ve understood the “if” and “else” conditionals, you know, those pesky words from fifth grade Grammar: 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 … Continue reading WSQ05

#WSQ05 Temperature

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 […]

Temperature

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:

#WSQ05

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 >= […]

#WSQ05

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 >= […]

What should you work on?

Week #12 and more partial exams for you.

For this week's readings:
C++ (TC1017) should either be looking at support for your project, ImageMagick C++ libraries are a good start.
Python (TC1014) should be finishing chapter 11 (Dictionaries).