Friday, August 21, 2015

11. Computer Programming with flowcharting Technique (page 11)



5.4.2. SORTING ( Sequence) just for limited data ( maximum of 4 data)

Problem 6
You are asked to makes program to sort numeral from the biggest number to smaller number determined by INPUT two level unegual numbers.
Solution
For example the number A and B

Logic:
First number is the biggest number, followed smaller number.

Programming stages,steps:

Confronts A with B, the winner is first number.

If A > B hence sequence is A, B
If no, means A smaller than B  (A < B), hence sequence is B, A


FIG.13

TEST DATA : Sees example before all

Followers

Blog Archive