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
Miguel Angel Cardenas Ortega’s Articles at TC101 Fall 2015, Page 3
Introduction to Programming Python and C++

Author Archives: Miguel Angel Cardenas Ortega

WSQ11

This is by far the most difficult WSQ of all, first you need to know how to compile and run with the big integer library, and then you need to know how to use the big integer type and how to convert form string to biginteger and viceversa. You will need a lot of loops, so I hope you know how to use them.

To setup your Big Int library watch this video: https://www.youtube.com/watch?v=PHZYtOhFAZs

if you don´t even know what the program should do, watch this video: https://www.youtube.com/watch?v=KMDDoipS9H0

check my code: https://github.com/MiguelAngelCardenas/WSQ11

GOOD LUCK, YOU´LL NEED IT!!

Quiz08

Here is my code fo the and the function sumsquares_list.

code: https://github.com/MiguelAngelCardenas/Quiz08

WSQ13

OK, I suffered a little bit with this one, because the babylonian’s method begins with a guess number, based on the number that you want to take the square root of, so to make that guess was I just only divide to divide by 2 the first number. I made 20 iterations of computing in order to make the square roots the most accurate posible and be able to take the square root of big integers.

Check the babylonian’s method right here: https://en.wikipedia.org/wiki/Methods_of_computing_square_roots

Check my code here:https://github.com/MiguelAngelCardenas/WSQ13

WSQ12

The hardest part of this homework is, to understand and fidn what the euclid´s algorithm. Once you understand that, everything is much easier.

Be sure to check my code: https://github.com/MiguelAngelCardenas/WSQ11

TO FIND THIS ALGORITHM VISIT THIS SITE: https://en.wikipedia.org/wiki/Euclidean_algorithm

WSQ10

WOW!!! We are almost at the end, this wsq was pretty easy, I did with vectors, and you will need to read chapter 10 of your book to understand how to use the vectors. And also in the chapter 10 there is a section where they tell you how to deal with a vector of an unknown size.

Also for the deviation formula you want to check up the page of wikipedia: https://es.wikipedia.org/wiki/Desviaci%C3%B3n_t%C3%ADpica

Check my code on Github: https://github.com/MiguelAngelCardenas/WSQ10

Quiz06

For me, this quiz was pretty easy, so doing it again didn´t take me so long. Actually I did it while Ken was explaining it on the board. I did the tow functions of superpawer and stars in the same program just to save time.

Check my code on Github: https://github.com/MiguelAngelCardenas/Quiz06 

WSQ09

This is easy if you know how to use the loops, especially while. The tricky part is doing it with recursion, I had to look in my book how to do that, and I find exactly what I need it in chapter 5, so go ahead and read that chapter. If you are to lazy you can just copy my code on GITHUB.

CODE: https://github.com/MiguelAngelCardenas/WSQ09

#WSQ09

WSQ08

This homework is pretty easy, you just need to go back to WSQ03 and change a few things, but at the end, the program is going to do exactly the same, just in a diferent way.

Check out my code on github: https://github.com/MiguelAngelCardenas/WSQ08

#WSQ08

Masterie 11 and 12

I made a video that explains both the masterie 11 and 12, because the two of them talk about functions, you can go and watch it down here.

URL: https://www.youtube.com/watch?v=-_rgnKXrz54

Masterie10

Down here is my video of the masterie10, so go and WATCH IT!

URL: https://www.youtube.com/watch?v=p80F8gAlkEE

 

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