Page 36 - modular4.0
P. 36
Chapter Profile
Step 2 Decide the time and place for the party.
Step 3 Inform family members and
friends about the party place
through phone calls or e-mail.
Step 4 Make necessary arrangements
like sitting, eating and
entertainment.
Step 5 Greet the guest with love and
warmth.
Step 6 Start and enjoy the party.
Step 7 Bid farewell to the guests. Clickipedia
In computer terms, ‘Algorithm is the
sequence of steps or computer operations Ada Lovelace is credited
which collectively solve a given problem’. for the evolution of the
concept of algorithm.
Writing an Algorithm
Let us learn how to write an algorithm.
Algorithm to find product, sum and difference of two numbers.
Step 1 Start.
Step 2 Read two numbers and store them in A and B.
Step 3 Multiply two numbers A and B.
Step 4 Print the product.
Step 5 Add two numbers A and B.
Step 6 Print the sum.
Step 7 Subtract the number B from the number A.
Step 8 Print the difference.
Step 9 Stop.
Algorithm to find the smallest in two numbers A and B.
Step 1 Start.
Step 2 Read two numbers and store them in A and B.
Step 3 Compare numbers A and B. If A is less than B, print "A is smallest" and go to Step 5.
Step 4 Compare numbers A and B. If B is less than A, print "B is smallest" and go to Step 5.
Step 5 Stop.
34 Modular (Ver. 4.0)-V

