n!

To do this WSQ I had to research what a factorial is and how it works, the page that I found useful is THIS ONE.

So the rule is:

n! = n × (n−1)!

Which just says “the factorial of any number is that number times the factorial of (1 smaller than that number)“.

The first attempt was a failure because every single one of the factorials gave me the number 1.

Captura de pantalla 2016-02-17 a las 2.42.19 p.m.

Then I found my mistake and here is the code:

Haga click para ver el pase de diapositivas.

The link of my code ☺

Sum of Numbers

sigma-notation(Credits goes to https://www.mathsisfun.com/algebra/sequences-sums-arithmetic.html)

For this WSQ we had to write a program that asks for a range of integers and then prints the sum of the numbers in that range (inclusive).

To do this correctly I first read how does the formula work and in my research i found this page —> https://www.mathsisfun.com/algebra/sequences-sums-arithmetic.html and it helped me to understand what I needed to do, after thar it was easy to program this wsq, and here is my code in atom and ran in the terminal.

Haga click para ver el pase de diapositivas.

And of course here is my link to my code in github → https://github.com/mfcanov/SumOfNumbers-.git

Give me your number 😏

Flipped ƃuıuɹɐǝ˥

ABOLISH GRADES!!!!!!

FlippedClassroomUWcolors-1-1024x242

(Credit goes to http://www.washington.edu/teaching/teaching-resources/engaging-students
-in-learning/flipping-the-classroom/)

Students gain control of the learning process through studying course material 
outside of class, using readings,pre-recorded video lectures. During class time,
instructors become facilitators of the learning process by helping students work
through problems individually and in groups.

I love this kind of learning because they don't force you to be like every other
student, each one of us have our own rhythm. Also I love that we learn from each
other not for a teacher just reading power point presentations durin an hour 15 
minutes. However, this kind of learning requires us to be more responsible of our 
way of learning.

Anyway thanks to my teacher for introducing this kind of learning to me. 

Link about "Flipped Classroom" I read----> http://www.washington.edu/teaching/teaching-resources/engaging-students-in-learning/
flipping-the-classroom/

Time to tame the beast 😈

This quiz was another level. I found it difficult because of the Fibonacci series, but at the end I tamed the beast.

In this quiz we had to :

  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.
  2. Write a function called fibonacci which receives a single parameter “n” (a non-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…………
    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.

1288910_700b

             (Credits goes to http://9gag.com/gag/1288910)

 

This was me with the Fibonacci program, beacuase in my other course I used to have a lot of problems, but at the end  I tamed the beast. 🐯

The link to meet the beast 👉 https://github.com/mfcanov/Quiz-3.git

 

Test the knowledge 😁

So this is quiz#2 in which we had to:

 ►Create a program with the following function.
 Write a function called superpower ♛ that has receives two parameters (ints) and returns an integer which is first parameter raised to the power of the second, which is to say it returns a^b.  There are many ways to do this, but the intent is for you to use a loop or recursion.

►Create a program with the following function.
Write a function called stars 🌟 that has one parameter of type integer and PRINTS that many stars on a single line, so if we call the function with stars(5), the function will print like this: *****

Here is the link to the quiz #2 ☛ https://github.com/mfcanov/Quiz-2.git

Time of the truth 📝📚

aD0PNnK_700b
(credits goes to http://9gag.com/gag/aD0PNnK)
☞ For the first program we had to write a program that asked the user for two values (radius, height) of type float and prints the volume (V=¶r2* h) of a cylinder with that radius/height as a float.

☞ The second program requested the user for two integer numbers, then use those two numbers to calculate and print the following:
* the product (multiplication) of the two numbers
* the INTEGER division of the two numbers
* the remainder from division of the two numbers

☞ The third one asked for the same as #2 but usingfloat numbers instead, in this program there won’t be remainder, so itshows the result of addition, subtraction, multiplication and division.

The github link for quiz #1 → https://github.com/mfcanov/Quiz-1.git

I drank some boiling water cause I wanted to whistle…. Jk of course 😁

For this assignment we had to write a program that will prompt the user for a temperature in Fahrenheit and then convert it to Celsius. You may recall that the formula is C = 5 ∗ (F − 32)/9. Modify the program to state whether or not water would boil at the temperature given.

I actually didn’t have any problems because as I said before I have programmed before in C++ so this one is a piece of cake.

Here are the two possible situations ran in my terminal:

Haga click para ver el pase de diapositivas.

Here is the github link to my “Temperature” code → https://github.com/mfcanov/Temperature.git