QUIZ 3

This quiz took me a while, not only because I finished it on last class, but I haven’t had time in the partials week.
Anyway, the first quiz was kind of easy because you only needed to follow the formula of the distance of two points in the plane.

 

So I look up in google for the formula and I found this one on http://www.elosiodelosantos.com/sergiman/div/formula_dos_puntos.htm
and the formula wasdistancia_0 and I just create the function of the program based on the formula.
Also, I needed to include the cmath library, in order to be able to use  “sqrt” that is the square root. One of my classmates told me that.Captura de pantalla 2016-02-20 a las 21.10.17

The link of my github account on this code is at the end.

 

For the second exercise, we needed to create a program which can tell you the value of a location in the fibonacci’s serie.
Honestly at the beginning I was so frustrated because I have no idea how to do it. I look up to the formula but i was this one: fibonacci-sequence-formula, and I didn’t understand it. So my friend Miguel gave me a hand. Told to put those 4 integers to use them on my code. Finally with his help we could create this code and I worked. You should see my face at the moment.

Captura de pantalla 2016-02-20 a las 21.10.30

The link to my GitHub account is right here.
https://github.com/antonioangelm24/TC101/blob/master/Quiz%203%20_%202%20-%20Fibonacci

https://github.com/antonioangelm24/TC101/blob/master/Quiz%203_1

 


Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión /  Cambiar )

Google photo

Estás comentando usando tu cuenta de Google. Cerrar sesión /  Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión /  Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión /  Cambiar )

Conectando a %s