Unit 3 - Algorithm (Algorithma)

Posted on Friday, May 7, 2010 by B[H] | 0 comments
Labels:

The techniques of selecting program statements and their logical sequencing which emphasize the translating of each step of program outline into one or equivalent C++ instruction is known by algorithm. Every detail, including obvious steps , should appear in algorithm.
You use algorithm everyday to make decisions or perform tasks. For example, a 30% discount sales at the supermarket, you must be able to write program that calculate and display the price of item after discount according to the price entered by consumer:-

i. Request price of item (Input)
ii. Value of discount = rate of discount * price (Process)
iii. Price after discount = price - value of discount (Process)
iv. Display of discount price (Output)

No comments:

Post a Comment