
I already did this hw but i just realized that ken didnt give me the points for this one so im reuploading it.
I already did this hw but i just realized that ken didnt give me the points for this one so im reuploading it.
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 →
https://github.com/estebanpinal/WSQ/blob/master/WSQ05
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 < […]
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 →
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 →
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 […]
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:
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 >= […]
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 >= […]