WSQ04

New way of teaching. Usually at the beginning of classes, most of teacher say they are teaching in a new, different way. They affirm that this is innovative and in the end just add or take off a few things, moralizing students about how important it is to think « outside the box ». So when Ken Bauer announced his new way of teaching I was thinking, alright, one more.

Turns out it is different. The abolishing grades vision releases the pressure. This is not anymore about I will perform on 3 days of the semestre but more about how much I will learn and use my knowledge. I love the flexibility which is adapted to our time and takes into account the fact that some weeks are more busy than others; or even what is going on in our personal life. Although, even if this does not really concerns me, it gives more flexibilty to students which already have knowledge. Instead of studying the same thing over and over again they can use their time to do more useful things. I wish I had had that in my business studies too.

Quiz4

 The number e is an important mathematical constant that is the base of the natural logarithm. It is approximately equal to 2.71828,[1] and is the limit of (1 + 1/n)n as n approaches infinity, an expression that arises in the study of compound interest. It can also be calculated as the sum of the infinite series.
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).

Course Review

http://www.tutorialspoint.com/python/ So this is the website that has been my best friend for this semester.

I am not sure what I could add to the video below. I learned how to porgram « basic » stuff and most of all how to understand code and the machine in general. That is actually the most important outcome of this class for me and wass my personal objective. As I said, I might not master Python, but with a little push from my bestie google, I can definitely code great things and have fun with it!

Thanks for the class!

Quizz 1

1. Create a file called prog1.py
Write a program that asks the user for two values (radius, height) of type
float
and returns the volume (V=¶r2*h) of a cylinder with that radius/height as a
float.
Quizz 1 sol 1
 To do this I used this very helpuful website, and my mind. http://www.tutorialspoint.com/python/python_numbers.htm
2. Create a file called prog2.py
Ask the user for two integer numbers, then use those two numbers to calculate and show the following:
* the product of the two numbers
* the INTEGER division of the two numbers

* the remainder from division of the two numbers

Quizz 1 Sol 2

I used the same website to find the solution. I also was not sure about how to integrate the sentences for the results. Turns out you have to divide the different type of « caracters » by a coma.

 3. The same as #2 but use float numbers instead. There will be no remainder, so show the result of addition, subtraction, multiplication and division.
Quizz 1 sol 3

Ok the all floating was a challenge for me. Same I found the solution on the website above.
« float (floating point real values) : Also called floats, they represent real numbers and are written with a decimal point dividing the integer and fractional parts. Floats may also be in scientific notation, with E or e indicating the power of 10 (2.5e2 = 2.5 x 102 = 250).  »