# Review of the course

### Flipped learning was something new for us this semester. At first most of us were a little confused and scare about it but at the end we really enjoy learning by ourselves and with the help of our parthners and new friends. Got it from: Elearninginfographic

### The benefits of trying this new type of learning is that you get to know to your classmates and your teacher, because its a commitment between your teacher and you as a student. Also you learn to value your own work and the calification you really deserve.

“Flippear” una clase es mucho más que la edición y distribución de un video. Se trata de un enfoque integral que combina la instrucción directa con métodos constructivistas, el incremento de compromiso e implicación de los estudiantes con el contenido del curso y mejorar su comprensión conceptual. Se trata de un enfoque integral que, cuando se aplica con éxito, apoyará todas las fases de un ciclo de aprendizaje (Flipped classroom).  # SciLab #Wsq14 SciLab es un programa que permite realizar un análisis numérico utilizando el lenguaje de programación.

Las características de Scilab incluyen análisis numérico, visualización 2-D y 3-D, optimización, análisis estadístico, diseño y análisis de sistemas dinámicos, procesamiento de señales, e interfaces con Fortran, Java, C y C++. Mientras que la herramienta Xcos permite una interfaz gráfica para el diseño de modelos (Wikipedia).

Es un programa similar a MathLab, que permite realizar cálculos complejos en cuestión de segundos. Incluso es posible generar gráficos.

Encontré esta presentación donde se menciona más al respecto: SciLab, espero les sea útil.  # Quiz 7

This quiz was about making a function that receive two lists of numbers and returns the dot product of the two lists.

What does it means? For example if your input is: [1,2,3,4] and [5,6,7,8], the answer will be 70. Why? Because (1*5)+(2*6)+(3*7)+(4*8) = 70

It wasn´t necessary to add the Not-a-number value because since the begging it ask to the user how many numbers does he wants on his lists.

You can see the code here: Dot Product.

Also I attach some pictures of the program working.    # Quiz 6 This quiz was about using the Euclidean algorithm to  obtain the greatest common divisor. I hope this gif can help you to understand about it.

Subtraction-based animation of the Euclidean algorithm. The initial rectangle has dimensions a = 1071 andb = 462. Squares of size 462×462 are placed within it leaving a 462×147 rectangle. This rectangle is tiled with 147×147 squares until a 21×147 rectangle is left, which in turn is tiled with 21×21 squares, leaving no uncovered area. The smallest square size, 21, is the GCD of 1071 and 462 (Wikipedia).

Also this was a very useful page: khanacademy.

You can find my code for this quiz here: GDC (Euclidean). As you can see I was missing some symbols and declarations at firsts and that’s why it was not working.   # Quiz 5

This quiz was about making an addition of numbers in a list, but only the numbers that were divisible by 3.

You can find the code here: Divisible of 3.

Also some pictures of the program working.   # Quiz 3

I noticed I hadn´t make posts of my quizes a long time ago even I had already answered them. So I share with you my quiz 3. In this quiz I was expected to solve two problems.

The first problem was about calculating the distance between two points in (x,y).
The second one was about calculating the Fibonacci number on a certain point.

Hope this is useful for you.  Quiz3 Problem1Quiz3 Problem2.

Haga click para ver el pase de diapositivas.  # Fixing mistakes Got it from Pinterest.

Write a function called triangles which receives a single parameter (int) which represents the size of a triangle as explained below. The function should print a triangle using loops (for or while). The only characters printed here are ‘T’ and the new-line character. The first line is length one, the middle line is length size and the last line is length one.

The Second:

Write a function called superpower that has two parameters of type long and returns a long which is first parameter raised to the power of the second, which is to say it returns a b So, superpower(3,4) would return 81.

The Third:

Write a function called fibonacci which receives a long “n” and returns a long which is the value of the nth number in the fibonacci series which is: 0,1,1,2,3,5,8,13,21,34,55,89………… So, fibonacci(0) would return 0. fibonacci(5) would return 5, fibonacci(8) would return 21. Note that the first two fibonacci numbers are 0 and 1. All others are the sum of the previous two fibonacci numbers.

The last one:

Write a function called isPalindrome which receives a string “x” and returns true if the string x is a palindrome, otherwise false.

You can see my solutions here. For making it I asked for help to my friend Edith, you can see her blog here.

Haga click para ver el pase de diapositivas.  # Lists of numbers Got this picture from LegacyProject.

This Wsq was about asking the user for 10 numbers and give him the addition, the average and the deviation number of all of them.

The instructions were:

Create a program that asks the user for 10 numbers  (floating point). Store those numbers in a list. Show to the user the total, average and standard deviation of those numbers. For the C++ group you can do this with arrays or Vectors, but you will need to know eventually how to do both.

For this task I decided to use arrays. But…. What is an array?

An array is a series of elements of the same type placed in contiguous memory locations that can be individually referenced by adding an index to a unique identifier (Cplusplus).

I got some help with posts of my classmates but also from this pages that might help you to understand: Mathsisfun and Cplusplus.

Here are some pictures of my code and also attach the code on Github. Lists of numbers

Haga click para ver el pase de diapositivas.

As you can see at the begging it was not making the addition correctly, this happened because I was mising a “+” lol ….  # Final Proyect

Well as final proyect I decided to work with Edith. We made a snake and the code for a robot.

Each of us worked more on one of the proyects but we also helped us with the other one.
I was working with the code for a Robot because for my class of “Computer Drawing” I was expected to do a robot with 2 degrees of freedom.

For making it I decided to use Arduino. I hadn´t use an Arduino before but I found some useful information on this pages.

You can find the code here: Final Proyect.

It is for 3 servos but feel free of using it o modifying it.  # Factorial

This task  was about making a program that asks the user for a non-negative integer and display for them the value of n! (n factorial). After that, it would ask to the user if they would like to try it with another number, in case they answered no the program will wish them a good day and then quit.

There were two options to solve this task: using a loop with an accumulator or a recursive solution. I decided to do something more challenging so I made a recursive solution. But Whats a recursive solution?

A recursive solution is a function that calls itself for getting the answer. For explaning this I found this picture with an example to the problem we are solving So instead of repeating the functions we can call it ilself. (If you want to know more about recursions you should check this link: http://www.programiz.com/cpp-programming/recursion) It was really useful for me to make this task.

Haga click para ver el pase de diapositivas.

That one was my solution, as you can see I had problems at firsts but after making an investigation I found what I was missing and then it work.

You can see my code on GitHub here: Factorial.  