Introduction to Programming Python and C++

Tag Archives: WSQ

Cars

#Jorge Fernando Saldaña Cabal #A01350730 archivo = open(“carros.txt”, “r”) lineas = archivo.readlines() #def primero: y = 0 contcity = 0 for i in lineas: x = (i[52:54]) if (x != “”): x = float(x) y = y + x contcity… Continue Reading →

Estimating e

This task was not that hard. We had to make a function that computes an estimation of e, which is a number very used in finances. The trick was our number must have the accuracy given by the user. Here… Continue Reading →

Yo soy 196

This task was of the most challenging ones of the entire course. We had to make a programm to find candidates of lychrel numbers in a given range. First of all i had to look what a lychrel number was… Continue Reading →

#WSQ12 GCD

This task was quite easy, it was possible to do only reading about Euclid’s algorithm. Even in wikipedia. It was just taking both numbers and getting its module, then dividing the second number and the module, until the module was 0…. Continue Reading →

WSQ16, Finally done…

This one could be the hardest one. “Cars vs. Yo Soy 196” would be a good fight. And I found out the function “atoi”(it converts strings to integers) is in the “algorithm” library… so good I had BigInteger when doing the “Yo Soy 196”. I had to research a lot for this one, and learned […]

Factorial Calculator

For this task i had to make a program that calculates the factorial of a given number, and of course to create a function. The code i wrote is this: https://github.com/sabaldaba/TC101/blob/master/Wsq09-Factorial The program at the end also gives you the… Continue Reading →

WSQ17, The last freaking one!!

Damn hell I can not believe this is the last WSQ (actually I skipped the WSQ16, but I will done it later). This was easy a heck, It was just about reading and doing examples. Now I (kind of) know how to use Scilab, an incredible program that could do almost everything, here some images: […]

WSQ14, Fun with Euler’s number

Hi everybody. There are only two WSQ’s left, I’m so freaking excited. The image: The code: https://github.com/hrglez/TC1017/blob/master/WSQ14%20-%20Euler Hugs for everyone, good luck, work hard. See you!

WSQ15… The Final Dash!!

Hi everyone. I cannot believe the semester is almost over. Thank God, Jesus, Jahavé, Buda, Pachamama, Rá and Alá. This is suppose to be my plan to finish the semester: A long weekend is coming, and you are going to see me expending my time in a chair in front of my computer and notebooks […]

WSQ13, Babylon

“In the rivers of Babylon”… Hi everybody, this is the post for the WSQ13. I’m getting closer to the end of this course, fuck yeah! I do not want to lie, I took the idea from two places: -This video: https://www.youtube.com/watch?v=sZmz7znP6x0 -This blog: https://modelac.wordpress.com/2007/02/16/ide-uso-en-c-c-raiz-cuadrada-programada-configura-tu-ide/ The image: The code: https://github.com/hrglez/TC1017/blob/master/WSQ13%20-%20Babylonian%20Square%20Root Good luck fellows! Have a great day.

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