Quiz 04

Here is the Blog post for my Quiz number 4.

  1. Create a function called euler_calc with a single parameter precision. The value of precision is used to determine when to stop calculating. Your calculation will stop when the two consecutive values estimating e differ by less than precision (remember to use absolute value when calculating the difference between two values here). Here is the link to my GitHub.

Captura de pantalla 2016-05-04 a las 10.13.20 p.m..png

 

Captura de pantalla 2016-05-04 a las 10.18.10 p.m..png

 

Quiz 03

Here is my blog post for the Quiz 3

  1. Write a function called distance (x1,y1,x2,y2) which receives four numbers which represent two points in the cartesian plane. The function should return the distance between the two points (x1,y1) and (x2,y2). Remember that the square of the hypotenuse of a right angle triangle is equal to the sum of the squares of the two other sides. Here is the link to my GitHub.

    Captura de pantalla 2016-05-04 a las 10.05.23 p.m..png

 

  1. Write a function called fibonacci which receives a single parameter“n”(anon-negative integer) and returns the nth number in the fibonacci series which is:
    0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89… Here is the link to my GitHub

Captura de pantalla 2016-05-04 a las 10.06.04 p.m..png

Lists WSQ10

Hello everyone! this WSQ is different, well kind of, what to d0:

Create a program that asks the user for 10 numbers. Store those numbers in a list. Show to the user the total, average and standard deviation of those numbers. I found some very useful videos and tutorials:

 

Captura de pantalla 2016-04-07 a las 10.40.28 a.m.

 

Captura de pantalla 2016-04-07 a las 10.37.25 a.m.

Well finally this is the link for my code in GitHub.

 

Sum of numbers WSQ07

Hello my friends, today we are going to do a task that is very similar to the last ones, but a little more difficult, we are going to write a program that ask the user for a range of integer numbers and then prints the sum of the numbers in that range (inclusive).

We can use a formula but thats not the way that we are going to do it, first we have to decelerate variants, and the use “while” and “if”. Here are some grateful videos for your enjoyment.

 

And as always, the link for my code in GitHub and some evidence

Captura de pantalla 2016-02-12 a las 8.42.59 p.m..png

 

 

Pick a number WSQ06

Hi again!! honestly this task was a little difficult, I had to do some research for this WSQ, and i found some great videos that I leave here. The WSQ consist in creating a program  that ask the user a random number between 1 and 100, the user have to guess and the program won’t stop running until you get the right number, but the machine give you hints and the number of attempts.

 

 

Chis is my link for my code, GitHub.

Captura de pantalla 2016-02-11 a las 10.25.22 p.m.

Temperature WSQ05

Hello!! the task of today was simple, you have to declare variants, also you have to use “if” and “else”, the program will ask you for the temperature in fahrenheit and then the computer will calculate the temperature in celsius with this formula: C = 5 ∗ (F − 32)/9. As an addition of this task, you have to manipulate the code until the computer tell the user if the water boils at the temperature given (under typical conditions), here is an example:

Captura de pantalla 2016-02-10 a las 10.20.39 p.m.

If you don’t know how to use “if” and “else” here are some videos, it might be useful.

 

And finally, this is my code GitHub