report bil137-2

report bil137-2 - number e. 3.4. Algorithm 1. Make...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Hacettepe University Computer Science and Engineering Department Name and Surname : Mahmut Sami Çoktalaş Identity Number : 20770181 Course : Bil 137 Programming Laboratory Experiment : Experiment 2 Programming Language : C Submission Date : 27/10/2009 Deadline : 10 /11/2009 Advisors : Oğuz Aslantürk, R.A. Seda Tankız e-mail : samicoktalas@msn.com
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2. Software Using Documentation 2.1. Software Usage This programme calculate the number “e”, according to given value that user entered using this formul; = !+ !+ !+… e 10 11 12 2.3. Error Messages If the user inputs number not between 1-20, he gets this error message “You can enter between 1-20”. 3. Software Design Notes 3.1 Description of the Program 3.1.1. Problem The problem is to find the Number “e”. 3.1.2. Solution This programme takes the input from the user and a number into a fuction. The function finds the factoriel of the numbers. Then programme uses loop and sum all values. Finally, the programme prints onto the screen as the
Background image of page 2
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: number e. 3.4. Algorithm 1. Make initialization. 2. Take a number from the user. 3. Check if any number is not between 1-20, he gets this error message and exit the program. 4. Go into the find_factoriel function. 4.1. Find factoriel . 5. Return factoriel to main function. 6. Calculate number e onto the screen. 7. Close program. 4. Software Testing Notes 4.1. Bugs and Software Reliability This programme has not got any bugs. If the user gives syntactically correct inputs, the outcome will most definitely be correct in all aspects. 4.4. Comments The number e is irrational ; it is not a ratio of integers. Furthermore, it is transcendental ; it is not a root of any non-zero polynomial with rational coefficients. The numerical value of e truncated to 20 decimal places is 2.71828 18284 59045 23536. REFERENCES: http://en.wikipedia.org/wiki/E_(mathematical_constant)...
View Full Document

This note was uploaded on 01/10/2010 for the course QWE qwe taught by Professor Qwe during the Spring '09 term at Amarillo College.

Page1 / 4

report bil137-2 - number e. 3.4. Algorithm 1. Make...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online