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
juansalvadorfernandez’s Articles at TC101 Fall 2015, Page 2
Introduction to Programming Python and C++

Author Archives: juansalvadorfernandez

Creating and calling Python functions

Functions are bits of reusable code meant to comply with a single task, such as calculating the value of “e” for example. Python already has some built-in functions, such as “print ()”, but it also gives you the possibility to create your own. In order to define a function you use the command “def”, then … Continue reading Creating and calling Python functions

Quiz 11: “Em&em” + “Bananarama”

This has been the hardest quiz so far, still after figuring out the logic of the program it becomes something “not that hard”: My problem with the first question was that I forgot that the “!” was indicating the factorial of a number. After exploring my inner self I remembered this and answered. With the … Continue reading Quiz 11: “Em&em” + “Bananarama”

ECOA, done!

Factorial …

I had a very har time with this exercise, since at the time I had no idea of how to use loops, later I began to understand how stuff works and stopped getting stuck in things like this, though I still preffer to do things without recursión, because it makes finding mistakes easyer for me.

On to functions

Quiet simple, since its the same as one of the first activities, the difference being that we used functions in this one.

Quiz 8: Lists

Actually a much simpler quiz tan I thought it would be, my worst problem was searching for all the commands I needed to make the lists do my bidding.

Here! have a nice Lol

Quiz 7: Distance between two points & oh god why! (Fibonacci)

With the first part I had no problems at all, and the thing with the Fibonacci sequence is that I tried to do it in a way more complicated way, but after thinking about the structure of what I wanted to do I realized that it was much MUCH simpler that I thought it was. … Continue reading Quiz 7: Distance between two points & oh god why! (Fibonacci)

#Quiz 6: “Redemption of the fifth”

Even after this Quiz I realized that I lack a lot more practice and that if I slow down my pace things will get ugly. Lets keep pressing on!

Basic data types…

As we are just getting started we will deal with three kinds of data: “String”, “Integer” and “Float”. Each of this types handles a different “species” of data, even if variables may seem the same they are in reality VERY different from each other. Let us imagine we have a variable “x = 5.4”, we … Continue reading Basic data types…

Use “print” and comments…

When working on a lengthy code, there can be loads of confusions and errors since it is difficult to keep track of the function of so much text. There also can be plenty of bugs from working with a team of people, who all have a different style and way of seeing things. This is … Continue reading Use “print” and comments…

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