seren - HACETTEPE UNIVERSITY Computer Science and...

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

View Full Document Right Arrow Icon
HACETTEPE UNIVERSITY Computer Science and Engineering Department Name and Surname : SEREN PİRİ Identity Number : 20826492 Course : Bil137 Programming Laboratory Experiment : Experiment 2 Subject : Using control structures and loops Data Due : 10.11.2009 Advisors : Oğuz ASLANTÜRK R.A. Seda TANKIZ e-mail : Main Program : Finding value of pi using Gregory–Leibniz series
Background image of page 1

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

View Full DocumentRight Arrow Icon
1. Software Using Documentation 1.1. Software Usage This program calculates the value of using the infinite series. First the program asks the users for an iteration value and is calculated according to this number. The result is then displayed on a console screen. 1.2. Provided Possibilities The user is expected to enter a positive integer, but if you do not enter a positive value, the user is alerted to enter a correct value. It is also assumed that the user will enter an integer. Because when the program starts to run, the user is prompted to enter an integer. 2. Software Design Notes 2.1. Desctiption of the program 2.1.1. Problem In Euclidean plane geometry , π is defined as the ratio of a circle's circumference to its diameter. The problem is about finding the value of pi. 2.1.2. Solution
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 5

seren - HACETTEPE UNIVERSITY Computer Science and...

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

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