Professional Documents
Culture Documents
CYCLE-1
Algorithm:
Step 1 : Begin
Step 5 : End
Flow Chart:
start
Print f value
Stop
1.2: Write an algorithm to find the greatest among three numbers and draw
the flowchart
Algorithm :
Step 1 : Begin
Flowchart:
Sreenidhi Institute of Science and Technology Page 2
Computer Programming Lab 2017-18
1.3: Write an algorithm and Flowchart for finding roots and nature roots of
Quadratic equation, given its coefficients
Algorithm :
Step 1 : Begin
2
Step 3 : Calculate d = b - 4ac
Step 4 : if ( d = 0) then
4.2 : calculate r1 = - b / 2a
4.3 : calculate r2 = - b / 2a
6.2 : calculate rp = - b / 2a
Step 7 : End
Flowchart:
Sreenidhi Institute of Science and Technology Page 4
Computer Programming Lab 2017-18
Algorithm:
Step 1 : Begin
Step 6 : end
Flowchart:
Sreenidhi Institute of Science and Technology Page 5