Dovahkiin, Dovahkiin, naal ok zin los vahriin.. (#WSQ09)

The assignment of #WSQ09 was the next one: So for this assignment I would like to see you create a function that receives as parameter the name of a file (this would be a string value like data.txt) and your function counts the number of lines and the number of characters in the file which […]

Babilonian oh-oh! (#WSQ10)

Before the assignment, I didn’t know about the Babylonian Method to calculate the square root of a number. It was hard to understand, but with this tutorial (Eric Buffington) I could comprehend a bit. Here is my code: Thanks for reading.

Survey! (Quiz week 14)

For this quiz we had to do an evaluation of our teacher Ken. I really want to thank him for the new experience he gave us of his way of teaching. I actually like that method because it helps me with my will force. Not only that, it helps me realize how responsible I am. Thanks Ken […]

Lots of Problems (Quiz week 9)

This quiz was veeeery long. There were 10 problems, but we only had to do 8 problems. 1. Escribe el función distancia cual recibe 4 números (x1, y1, x2, y2) cuales representan dos puntos en espacio (x1,y1) y (x2,y2). El método debe regresar la distancia entre los dos puntos. Recuerda que el valor cuadrada del […]

Distance (Quiz week 9)

The assignment of the quiz was to ask for two coordinates and calculate the distance between them. It needed to have floats and a function as well. This problem was very easy, because in school they made me calculate the distance a lot of times. I only add the math library (<cmath>) because I elevate to […]