Question #1:
Oh boy, this sounds good already!
This was the easier question, no doubt. Checking for help in some websites, such as Stack Overflow and Cplusplus.com everything was clear.
GitHub code Link for Question 1.
Question #2:
Welp, this was a lot more interesting. Handling files and data is very important in programming, and again, going to Stack Overflow and Cplusplus.com helped, though some of the explanations were far too complicated for my liking, so I turned to Tutorials Point for reference on files and streams.
GitHub code Link for Question 2.
]]>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 help from Montse Bernal, whose code structure I used to make the program work. It was very useful to use the numeric and cmath libraries for this WSQ.
Without further ado, here’s the link for WSQ 10.
]]>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 try and do it with a loop in a future edit.
Enjoy the link! WSQ 9.
]]>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 GitHub link: WSQ 8.
]]>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:
]]>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.
]]>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 to take some getting used to.
Having said that, I’m hoping to make the best out of the model and have more freedom to learn by myself. I’m also hoping this will be the case with my classmates, as well.
I’ll leave this video about the topic here. It’s worth checking out!
]]>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!
]]>