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

Tag Archives: #loops

Matery 22

On this mastery I’ll show you when to use what type of repetition in a program. 

For the purpose of this mastery, we’ll focus on while and for loops because they are the easiest and most used ones.

On mastery 19 we learned how to use a while loop. The while loop consists of something that will happen WHILE a condition is given. For example: WHILE x is greater or equal than 0, something will happen, and this process will continue to happen WHILE this condition is true.

On mastery 20 we learned how to use a for loop.

A FOR loop is a type of loop which allows you to give specific conditions to it, and then repeat when this conditions are true.

Now, while and for may be seem like they are the same, but they certainly ain’t. The main difference between them is that FOR loops will continue happening for a given number of iterations. 

As you may recall, functions often use a for loop because of the iteration part. In someway, FOR loops are “better” when dealing with functions, while WHILE loops are great to work with inside main().

Picture and more information from this webpage.

Using Loops FOR and WHILE

Loops Loops are used to repeat a block of code. Being able to have your program repeatedly execute a block of code is one of the most basic but useful tasks in programming — many programs or websites that produce… Continue Reading →

Mastery 19 – Use of loops with While

I know how to use loops, its really simple. I will show you a WHILE loop that I used in the WSQ07:This loop makes posible the constant repetition of one statement, it can also work with variables and numbers thats why I put the counter inside. The WHIL…

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