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
‘Masteries’ Articles at TC101 Fall 2015 https://kenscourses.com/tc101fall2015 Introduction to Programming Python and C++ Thu, 26 Nov 2015 06:48:10 +0000 en hourly 1 https://creativecommons.org/licenses/by/4.0/ #Masteries 23, 24 & 25 https://kenscourses.com/tc101fall2015/2015/masteries-23-24-25/ Thu, 26 Nov 2015 06:48:10 +0000 http://manuelgodm.wordpress.com/?p=205 ]]> And here my video: https://youtu.be/LNpxQAoDXpI

Here you can find more information about arrays: https://www.programarya.com/Cursos/C++/Estructuras-de-Datos/Arreglos-o-Vectores

You can find information about vectors here: http://www.cplusplus.com/reference/vector/vector/?kw=vector

You can find information about strings here: http://www.cplusplus.com/reference/string/string/?kw=string

(Tuve problemas para subir el video por que estaba muy muy lento el internet, por eso apenas lo postee, espero y pueda comprender ken)

]]>
https://creativecommons.org/licenses/by/4.0/
Open and read files https://kenscourses.com/tc101fall2015/2015/open-and-read-files/ Thu, 26 Nov 2015 05:46:48 +0000 http://saldabal.wordpress.com/?p=192 Continue Reading →]]> This was a very challegnig thing i’ve got to get through in  the semester.

To learn how to open and read files i had to read a lot of times the same thing of the “How to think like a computer scientist”

There are special words to do this how ever the esscentials does not need you to import any module which is good for us.

First of all we have to tell python we want to open a file, to do this we must type set a variable and set the open to it like this:

variable = open(“name of the file.txt”, “r”)

It is very important that we put our paraeters in this case within quot marks, as you see up you have to type an ‘r’ after the name of the text which indicates that is reading.

Now we have it open we have to read it.

To read the text we can choose between read line by line orto read all of them.

1 line at a time: variable = previous_variable.readline()

all of them: variable = previous_variable.readlines()

From here you just haveto get creative and do the stuff you want. And just dont remember that always at the end you must close your text with:

variable.close

An example:

archivo = open(‘bananas.txt’, ‘r’)

one = archivo.readline()

print (one)

close.archivo

 

Hope you enjoy it!

 

 

 

]]>
https://creativecommons.org/licenses/by/4.0/
Sent work via Github https://kenscourses.com/tc101fall2015/2015/sent-work-via-github/ Thu, 26 Nov 2015 05:29:49 +0000 http://saldabal.wordpress.com/?p=182 In the following video i show you how to use the basics of Github and how you can send your work so other people can see your code.

]]>
https://creativecommons.org/licenses/by/4.0/
Show you i installed linux https://kenscourses.com/tc101fall2015/2015/show-you-i-installed-linux/ Thu, 26 Nov 2015 05:23:31 +0000 http://saldabal.wordpress.com/?p=178 The following video will show youi have installed linux in my personal computer:

]]>
https://creativecommons.org/licenses/by/4.0/
Nesting of conditional IF statements. https://kenscourses.com/tc101fall2015/2015/nesting-of-conditional-if-statements/ Thu, 26 Nov 2015 05:19:35 +0000 http://myfreakingcrazythoughts.wordpress.com/?p=418 Continue Reading →]]> In C++ the braces of and if or an else clause can contain another if statement. There are known as nested if statements.

In simple terms a nested if is when you write an IF inside another IF braces.

This is the basic structure of a nested if.

if( boolean_expression 1)
{
   // Executes when the boolean expression 1 is true
   if(boolean_expression 2)
   {
      // Executes when the boolean expression 2 is true
   }
}

 

And of course we can nest else if in the similar way as you nest the if statement.

This is an example of a program with nested if-else.

#include <iostream>
using namespace std;
 
int main ()
{
   int marks = 55;
   if( marks >= 80) {
      cout << "U are 1st class !!";
   } 
   else {
      if( marks >= 60) {
          cout << "U are 2nd class !!";
      }  
      else {
	if( marks >= 40) {
  	  cout << "U are 3rd class !!";
	}
	else {  
	  cout << "U are fail !!";
        }		  
      }
   }
   return 0;
}

 

And this will be the output:

U are 3rd class !!

 

-The Admin.

]]>
https://creativecommons.org/licenses/by/4.0/
#Masteries https://kenscourses.com/tc101fall2015/2015/masteries-11/ Thu, 26 Nov 2015 04:57:46 +0000 http://reneorozcotc1017.wordpress.com/?p=185 This is my Youtube channel were is all my stuff

https://www.youtube.com/channel/UCaUVAH-AvAlHJoMmiYES9Bg/videos

]]>
https://creativecommons.org/licenses/by/4.0/
#Masteries https://kenscourses.com/tc101fall2015/2015/masteries-12/ Thu, 26 Nov 2015 04:56:04 +0000 http://reneorozcotc1017.wordpress.com/?p=181

]]>
https://creativecommons.org/licenses/by/4.0/
#Masteries – Masterie 28 – A01631728 https://kenscourses.com/tc101fall2015/2015/masteries-masterie-28-a01631728/ Thu, 26 Nov 2015 03:03:46 +0000 http://luisduarteitesm.wordpress.com/?p=129 ]]> Reading and writing of files in C++

Masterie 28

For writting files you first need to open it, for that you need a library that’s call “fstream”, that helps to read and write on files. As the example shows, you need to use the function open and put the name of the file with the respective type of file that is (ex. .txt, .jpeg, etc).

And if you want to write on the text you do need to put the name of the file and then put and output and with “” write whatever you want to write.

1111

 

]]>
https://creativecommons.org/licenses/by/4.0/
#Masteries – #TC1017 – A01631728 https://kenscourses.com/tc101fall2015/2015/masteries-tc1017-a01631728/ Thu, 26 Nov 2015 02:51:03 +0000 http://luisduarteitesm.wordpress.com/?p=123 ]]> Here are  the final masteries, finally!!!!! IM DONEEE

Masterie 8 and 21: https://www.youtube.com/watch?v=5N4_ylfjvBI&feature=youtu.be&hd=1

Masterie 2 and 9: https://www.youtube.com/watch?v=ywiEexzfTAc&feature=youtu.be&hd=1

]]>
https://creativecommons.org/licenses/by/4.0/
Mastery 13 https://kenscourses.com/tc101fall2015/2015/mastery-13-11/ Thu, 26 Nov 2015 01:14:42 +0000 http://octavioirg.wordpress.com/?p=265 ]]> Importation and use of libraries on C++ can be hard or easy. It depends on your OS (operative system).

Believe me Windows Users, there is a better world outside and it’s called Linux.

linux on laptop
CC licensed photo by Juan on Flickr. Old school linux. 😉

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