Question #1: Write a function called calculateE that receives a single float parameter accuracy and calculates the value of e using using sufficient terms ) until the difference between two successive calculations differ by LESS than the parameter accuracy. Oh boy, this sounds good already! This was the easier question, no doubt. Checking for help … Continue reading Quiz 11 →
So many items, we might forget something… Using lists with arrays and vectors is quite easy, but here we need to combine that knowledge with our knowledge of functions and mathematics… oh and C++. Almost missed that one. Doing it with arrays was easy, so I wanted to do it with vectors and asked for … Continue reading WSQ10 →
You should follow the leader… and multiply yourself times them. Factorials are one of the most fascinating parts of math, but I for one couldn’t wrap my head around how to do a code for this one. Credit to my partner Samantha Rivera for showing me an easy way to do it through recursion. I’ll … Continue reading WSQ09 →
Some functions inside one big function… So we had to repeat WSQ 3 with a little twist. Now all of the operations we did have to be written in functions. This was one of the easiest WSQ’s looking back on it, and still very useful and basic for the understanding of C++. Here’s the usual … Continue reading WSQ08 →
Ranges, bounds, formulas! Mathematically, there’s a really cool operation we could use to get the integer sum of [n_1, n_2], so when I read that that wasn’t what we had to do (at least not exactly) it felt more interesting. Here’s the GitHub code link: WSQ 7.
Randomness abounds. So for this WSQ, I had to check the <ctime> library and why it worked for assigning random numbers, several times. It ended up being quite easy, as with C++ the same thing can be done in different ways (Thank you cplusplus.com!). Here’s the GitHub link to WSQ 6.
Holy flippers, Batman! So that’s what a flipped classroom looks like. I had heard the phrase being used before, to refer to a class in which the students watched videos at home and worked in the classroom. However I wasn’t too familiar with the concept, and I must say adjusting to the format is going … Continue reading WSQ02 →
Good morning everyone! Agreed to the TC101 Page One document, #WSQ00 is now complete. https://twitter.com/st_olallaq057/status/630952990740877312 Not the first post of the blog, but the first of the TC101 Course. Excited to post more in the future!