This was difficult to me because I didn’t understand very well the instruction, but with the help of other classmates I tried to read the codes and understand what it does.
I search in some websites and videos to know what I needed it, these are some websites:
- http://stackoverflow.com/questions/3028282/an-efficient-way-to-compute-mathematical-constant-e
- http://www.cplusplus.com/forum/beginner/65319/
Finally, here it is my code: https://github.com/Andreandc/TC1017/blob/master/WSQ14
WSQ14 – Estimating e by Andrea Ac is licensed under a Creative Commons Attribution 4.0 International License.