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
‘#45’ Articles at TC101 Fall 2015, Page 3
Introduction to Programming Python and C++

Tag Archives: #45

#Mastery03 – Create accounts: Blog, Twitter, GitHub

This is the in which I´m going to show you how to create your Twitter, Blog, and Github accounts and register them in Ken´s page.

 

Starting with twitter, go to this link https://twitter.com/signup where you have to type your complete name, mail or cellphone, and user name. After you register, go follow https://twitter.com/ken_bauer where you can ask Ken for help.

 

Going next to the blog, you have many options to choose from. I made my blog on https://withknown.com/new/ but you may choose to do it on https://wordpress.com/start/themes/es . Here is where you will be posting all of your WSQ’s and Materies like this one.

 

And finally, doing the Github account is pretty simple too. Just go to https://github.com/join and after filling all of the blanks, you are done! Github is kind of a Facebook but for programming, were you can publish the codes you want and link them to your blog.


 

96

Normal
0

21

false
false
false

ES-TRAD
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-padding-alt:0cm 5.4pt 0cm 5.4pt;
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;}

After doing all of this, make sure you register your blog on kens website in https://docs.google.com/forms/d/1MW7etfBtLpJNviIKuD1-y6e9Hyo9RcpDtAQHFk5IlZw/viewform and register your account on http://kenscourses.com/tc101fall2015/wp-login.php?action=register to have access to your grades and stuff like that.

#Mastery01 -Ability to create C++ file and run from command line

Hi today I´m doing that is about knowing how to create a c++ file and run it, and we are making the “How are you doing?” program that is actually pretty simple and easy to do.

First, you have to make sure you have a text editor. The best option is to have one specially made for programming because that way, when you are writing your code line, the editor marks each word depending on its function. This makes easier, for instance, to realize when you are coding wrong. For this, I use atom, and it is available for both operating systems.

Another thing you need to have is a compiler, if you use Mac, it is all ready installed and it´s called terminal. If you use Windows, you con download Cygwin. Make sure, when installing Cygwin, that you don´t download the whole package, just the stuff you need for the course (you can check out Ken´s video on how to download Cygwin for Windows on his channel.) Link: https://www.youtube.com/watch?v=i2h_976SpV0

So these are the steps you need to follow to program How are you doing? In c++: 

First you have to open up your text editor, and make sure you save it first (easier for me) with any name you want with ending in .cpp. Make sure you remember where you saved it because you are going to need the direction when compiling.

You need to start on first line writing

And second line using namespace std;

And finishing your code, you have to write retun 0; } (you can already write it down if you want to).

Remember to be careful with spaces and most important, don’t forget to put a “;” at the ending of each line. Don´t worry if you miss one, you the compiler will show up the error.

 

 

Then, after the first two lines, type int main() {cout . The cout command means that it is going to print anything that is following that. Typing words in between “” gives them a string value. The endl; means end line.

96

Normal
0

21

false
false
false

ES-TRAD
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-padding-alt:0cm 5.4pt 0cm 5.4pt;
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;}

Finally, you have to open your compiler. First you need to change directory, for this, you have to type cd Documents/ (This obviously if you have the file saved on your documents.)

 

 

Then type ls (LS), which gives the list of documents saved on that direction. When you find your document (howareyoudoing.cpp), type g++ howareyoudoing.cpp, this transforms your code in to g++.

 

At last, you have to type to run it, ./a.out (if using Linux or Mac) or ./a.exe (when using Windows). And that´s it! You have finished your first program.

 

#WSQ06 – Pick a Number

This activity was a little harder than the other ones because I had no idea how to begin, somehow I figured out more or less how. I had to gloogle how to do random numbers though, because I had no idea. Remember that when you want to have …

#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

ES-TRAD
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-padding-alt:0cm 5.4pt 0cm 5.4pt;
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;}

http://www.cprogramming.com/tutorial/lesson2.html    

#WSQ02 – FLIPPED LEARNING

This method actually seems pretty interesting. I hadn’t heard about it before. It seems more efficient because regular lectures can get boring sometimes. You have to be careful though, because most of the work relies on the student.

I found this video that explains what flipped learning is not, pretty easy to understand actually.

96

Normal
0

21

false
false
false

ES-TRAD
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-padding-alt:0cm 5.4pt 0cm 5.4pt;
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;}

https://www.youtube.com/watch?v=hGs6ND7a9ac

 

 

#badluckricardo

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).