Introduction to Programming Python and C++

Temperature

#include <iostream> using namespace std; int main () { int a,c,b,d; cout << “Coloca grados” << endl; cin >> a; c= 5*(a-32)/9; if (c>100) { cout << “gaseoso” <<endl; } else if (c<0) { cout << “solido”; } else { cout <<“líquido”; return 0; } }

WSQ05, Degrees

Hi, this is the post about the WSQ05. The huge problem in this one was about controlling the output to not write all the numbers that the “float” storage have. Here we go: I think everything in the program is easy, except by the “setprecision” stuff. Let’s talk about it: “setprecision” is a function, included in […]

WSQ05, Degrees

Hi, this is the post about the WSQ05. The huge problem in this one was about controlling the output to not write all the numbers that the “float” storage have. Here we go: I think everything in the program is easy, except by the “setprecision” stuff. Let’s talk about it: “setprecision” is a function, included in […]

#WSQ05

This is probably the way many students look like when their codes doesn’t work… probably… So this WSQ was really easy, the only “difficult” part wasn’t really that hard, and I’m talking about including if, though in this inline code I didn’t included an else function, I had to learn it for the partial exam, … Continue reading #WSQ05

WSQ05 – Temperature

So in this WSQ I went a little bit more ham that i should of. The practice was simply to ask for a temperature in Fahrenheit and change it to Celsius. What I made the program do is for it to ask the user with what units he’s working with and then asks what units […]

Temperature Converter!

Today’s WSQ07 is about to create a temperature converter which will ask the user for a temperature in Farenheit degrees so it will translate it into Celsius and also it will let you know if the water boils at that… Continue Reading →

#WSQ05 – Temperature

Hi everyone here is my “Temperature” practice finished. Here are some tips that I figured out from the errors I had during the process:

• I used double to declare my variables, which lets the program to display decimals.

• Then, for the conditional, I used an if statement.

• Make sure you use spacing and braces correctly because most of the time the compiler doesn´t run the program with these little errors.

• If you use a text editor like atom, it usually shows each word you type depending on its function, that´s when you can first realize if you are typing something wrong.

• When using an if statement, you have to add the TRUE statement following the If in between braces. If you want a FALSE response, add it after with an else and the command in between braces too.

Check out this page that gives instructions for the If statements, it really helped me out!

96

Normal
0

21

false
false
false

X-NONE
X-NONE

/* Style Definitions */
table.MsoNormalTable
{mso-style-name:”Tabla normal”;
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:””;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:Calibri;
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-fareast-language:EN-US;}

#WSQ05

Temperature code is running. I did not have problems using IF, it does not have loops yet, so it is …

Sixth SenseThis was an easy task, I used my last program to…

Sixth SenseThis was an easy task, I used my last program to develop this one, and it worked nicely.I used If functions and normal variables.If you want, you can see my code here:https://github.com/opezaimd/TC101/blob/master/WSQ05

WSQ05

Sup’ guys and grills, so here’s my WSQ05 called “Temperature” because we have to measure if “X” temperature, in Fahrenheit, then convert it to Celcius then, tell if Water at that temeperature would be boiling or not. Here’s my “code” (Really simple code, i need to step my coding game up): And here’s my code […]

What should you work on?

Week #12 and more partial exams for you.