Final Project: FINAL

FINAL

It’s over. It’s all over!! “Stress Free Bar” by Jason St. Peter. Link: https://www.flickr.com/photos/fiftypercentchanceofrain/3769770467/

Redundant title is redundant. After much work, tears, sweat and a couple of sleep-deprivation sessions at the Biblioteca, we did it. Messily, and with two codes worth of work, but we did it. Montse had a lot of trouble simply getting the Magick++ library to cooperate with us and it just did not work in my computer. I really have to check it sometime… Anyway, the “good” code is the one titled Final Project.cpp, while the others are alternates with discrepancies (see Week #3). All we have left to do is wait for the reckoning to come.

Here’s the alternate (code for “sucky”) code:

Final1

Final2

Aaaand finally the good and final GitHub code link.

Masteries 23. and 26.

Mastery 26

Entering the matrix in this moment… and never leaving it. “Matrix Code” by David Asch. Link: https://www.flickr.com/photos/trinity-of-one/20562069/

Description: Creation and use of vectors and matrixes in C++.

The very last one. We are going into the matrix of codes (or the code of matrixes, rather). It’s a bit odd that these masteries find themselves separated by a gap between two other masteries, but that’s just nitpicking. Let’s go ahead and finish this trip.

Video link.

Masteries 24. and 25.

Mastery 25

Pianos are also arrays… kind of. “Piano strings” by Kevin Dooley. Link: https://www.flickr.com/photos/pagedooley/6399773133/

Description: Creation and use of arrays and strings in C++.

Wait, I didn’t know strings were arrays! Just kidding, we have to know all about arrays and strings if we want to make more complicated code, and it’s always useful to know that you can do one thing in more than one way.

That said, I leave you with the video explanation.

WSQ13

13WSQ

Don’t go around copying Ken! There are only so many pictures about Babylonia… From the Pergame Museum, Germany. Credit to Antoine Vasse. Link: https://www.flickr.com/photos/vasnic64/9644229995/

The Babylonian method for calculating square roots of numbers consists in guessing the result of the desired square root and then applying a very simple formula to it. I tried to do this WSQ with a for loop at first, and after many tries, I realized it was leading nowhere, so I asked for help from Carlos Gallegos, who deserves a massive shoutout and thanks! Turns out it was easier to do the function with while loops, using absolute value for the formula.

Down below is the
GitHub code link for the WSQ.

WSQ12

12WSQ

I thought fun with numbers was over? “Numbers 7/52” by Janet Ramsden. Link: https://www.flickr.com/photos/ramsd/5445918407/

The Greatest Common Divisor of two numbers can be obtained using Euclid’s Algorithm of dividing them and taking the remainder, repeating the process with the following pair of numbers until the remainder is equal to 0. With this knowledge, the programming processes began and there were (thankfully) no problems from there on out.

I leave you with the GitHub code link to WSQ 12.

WSQ11

11WSQ

“I don’t wanna become a palindrome!” – Every Lychrel number. Photo by R. Bradshaw. Link: https://www.flickr.com/photos/zionfiction/8334993349/

Downloading the BigInteger library and making it work is the first step to make this WSQ, and I hadn’t downloaded it so this took some time… It was easy afterwards, and whenever you get stuck it is always a good idea to pay the guys at cplusplus.com a visit. It is also good to see what others are doing and try to do it yourself since the working environments are different for everyone.

The code is, as always, hiding in plain sight.