#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 →
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 →
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 →
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 →
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 […]
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 →
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: […]
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!
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 […]
“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.