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_logo

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.

Si les interesa descargarlo pueden entrar al siguiente link: http://www.scilab.org/download/latest.

 

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.

quiz7aquiz7b

 

Quiz 6

170px-Euclidean_algorithm_1071_462This 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).

Read More

Fixing mistakes

This task is about fixing our programs made for the second partial. The problems were:

49139c2074d3fc239df813c0452a0907

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.

Triangles with T´sSuperPowerPalindromeFibonacci.

El pase de diapositivas requiere JavaScript.

Lists of numbers

list-for-living-2-1xswisr

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

El pase de diapositivas requiere JavaScript.

As you can see at the begging it was not making the addition correctly, this happened because I was mising a «+» lol ….

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.

Read More