# Course Review

--Originally published at BRENDA

I really liked having this class with Ken. I think he is a great teacher that used a completely different system that what we are all used to, so that makes it challenging but rewarding. At first I was really scared of this course since I had no idea how to program or anything related to it, but I leart the basics of c++ in a semester. I really liked how this class was relaxing since we could practically do anything in it, but somehow I managed to keep up with the rythm and learn. I would totally recommend to take this course to anyone who asks me. I think he is a great teacher that dedicates his time to his students, during and after classes, he always has an open door.

# WSQ13 – SciLab

--Originally published at BRENDA

This was a different task than what we are used to. I did this one with Oscar, Ana and Sofia.

We downloaded the program SciLab and we learnt the basics of how to use it. I think this would be a really helpful tool in the future since I am studying to be an Engineer.

This is the link to Oscars’s post:

https://oscarramirezblogblog.wordpress.com/2017/11/22/wsq13-scilab/

# WSQ12 – Estimating e

--Originally published at BRENDA

For this assignment the user set a value of precision for the value of e. I had to use the function of calculating the factorial.

For creating the formula for the precision I used the method of calculating euler with the factorial. The formula is the following:

This is the function:

double euler(double precision){
double e=0;
double n=0;
double previous=9.9999999;
while (abs(e-previous)>precision){
previous=e;
e= (1.0000000000/factorial (n)+e);
n++;
}
return e;
}

https://github.com/brendaruizt/TC1017/blob/master/estimatinge.cpp

# Painting

--Originally published at BRENDA

I leave here a painting I once did in an art class, just to distract myself from everything I have to do.

# Arrays

--Originally published at BRENDA

I had a little trouble understanding how arrays work, so here I leave a video explaining how they work.

# Project

--Originally published at BRENDA

Hi!

I have partnered up with Oscar to do this semester’s project. We are going to do a game that guesses the character of Game of Thrones you are thinking of by asking the user a set of questions. You can check out Oscar’s post por a further description of the project and the schedule we are going to be working on.

# WSQ11 – Bananas!

--Originally published at BRENDA

Ind this assignment I learnt how to find a specific string in a file, in this case the word banana. I used the function line.find(“banana”).

First I made the function work by searching only for the word banana, with lowercase. I made a loop inside of a loop so that if the a word banana was found in a line it wouldn’t just jump right to the next line, instead it would keep looking in the same line until all the bananas were found.

When the code worked I added a new function called transform to convert all the strings in the file to lowecases. This way, it wouldn’t matter if the word was written as Banana or banAna, because it would be converted to just “banana”.

This is the function transform:

transform(line.begin(),line.end(),line.begin(), (int (*)(int))tolower)

Here is my code:

https://github.com/brendaruizt/TC1017/blob/master/banana.cpp