Quiz 3

Now we have the Quiz number 3.

In this quiz, first we have to create a program that calculates the distance between two point in a graph using the coordinates (X, Y).

The user has to introduce the two points (X1, Y1) and (X2, Y2).

Captura de pantalla 2016-02-12 a las 10.49.21 a.m.Captura de pantalla 2016-02-12 a las 10.49.44 a.m.

In the second program we have to do the Fibonacci sequence using just one input.

The Fibonacci sequence are the numbers in the following integer sequence.

0, 1, 1, 2, 3, 5, 8, 13, 21, …

By definition, the first two numbers in the Fibonacci sequence are either 1 and 1, or 0 and 1, depending on the chosen starting point of the sequence, and each subsequent number is the sum of the previous two.

Captura de pantalla 2016-02-14 a las 5.51.40 p.m.

Also, the program ask the user if he wants another number of the sequence.

Captura de pantalla 2016-02-14 a las 5.52.20 p.m.

PRoPBdo_700wa_0

TC101

Quiz 3

CC BY-SA 4.0 Quiz 3 by josequirogablog is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.