Tag Archives: #conditional

#Mastery17

This mastery is useful to learn a different conditional, I explained “else”, “if” and “else if” conditionals before, but in this post I am going to explain “SWITCH” conditional. This conditional works as “if” conditional, but I think that it is easier to understand, because the structure is simpler.

I did a program that shows how this conditional is used, here you can see a picture about that:

Also I did a pp to explain this conditional, this is the link:

https://drive.google.com/file/d/0B-NM4ghaDXBvc0NvdnkxVk9GdFk/view?usp=sharing

And you can find my c++ code here:

https://drive.google.com/file/d/0B-NM4ghaDXBvd0gtVGxYWnRiSVE/view?usp=sharing

Finally this links were useful for me and you could find them interesting and useful to learn more about “switch”:

https://adolfredobelizario.wordpress.com/2012/06/19/tutorial-5-lenguaje-c/

http://aprende-a-programar-ya.blogspot.mx/2011/08/estructura-condicional-multiple.html

 

Mastery16

Using conditionals is really useful when you want to execute an action depending of the result of other action; to do that we use “if” and “else” conditional; but when you want to validate more than one condition you have to use “else if” conditional.

First of all we need to know what is the structure for this conditonals, in this link you will find a pp that explain “else” and “else if” conditionals with detail:

https://drive.google.com/file/d/0B-NM4ghaDXBvX3VSc3NZY3lzaEE/view?usp=sharing

The following picture shows a c++ code using conditionals.

Finally, I found information about that in this link:

http://www.tutorialspoint.com/cplusplus/cpp_if_else_statement.htm

Mastery15

For this mastery we demonstrate to have the ability to use “if” conditional.

In this c++ code I used “if” conditional, but I mixed it with “else if” and “else”, but I am going to explain them in other post.

In the following links I found useful information about “if” conditional:

http://www.tutorialspoint.com/cplusplus/cpp_if_else_statement.htm

http://www.omijal.org/pagina_c/conds.html

Also, I did a pp to explain “if” conditional and I hope that you learn something about the conditional.

https://drive.google.com/file/d/0B-NM4ghaDXBvY0xzVW0taWpaZ1U/view?usp=sharing