Quiz #4

Here is my Quiz #4. First, let’s read the instructions:

Captura de pantalla 2016-04-04 a las 7.32.09 p.m..png

Basically we have to create a program that calculate the euler number, which as you can see it is an important mathematical constant. The user will give the precision wanted and the program should stop working when the last two values differ by less than the precision given by the user.

First, we create a function that calculate the factorial series from the number 1. We will use this function later when we want to calculate the algorithm of the euler number.

Captura de pantalla 2016-04-04 a las 7.35.56 p.m.

Captura de pantalla 2016-04-04 a las 7.42.51 p.m.

For this program Ken helped us in class because we had no idea of what we were doing… we created a program that showed us the multiple values of euler for a given number and that helped us to understand about setting the precision. 

Here you can see the actual code of the Quiz on GitHub.

Aaaaaand here you can see the code for the different values of e for a given number. It can help you to understand the whole question of the quiz.

Peace…

Alex H.

CC BY-SA 4.0 Quiz #4 by alexhfoo is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.