report bil137-2

# report bil137-2 - number “e” 3.4 Algorithm 1 Make...

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

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 : [email protected]

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

View Full Document
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

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

View Full Document
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

{[ snackBarMessage ]}

### 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
Ask a homework question - tutors are online