Monday, September 29, 2008

Basic Programming Case

Introduction to real programming
The real case in programming always very complex and have relation with any procedure. Even though, to practice our programming logic and algorithm to solve the complex case, we use a simple case but needs a high logic. The following cases are: progression/sequence, validation, positioning and string manipulation.

Progression/Sequence
A number sequence is one of algorithm that always used to practice programming logic. In simple form, the exercise of sequence just print out a sequence numbers. For example:
– 1,3,5,7,9,…
– 2,7,12,17,22,…


Validation & Verification
Validation is a process to check the input with some exact criteria. Validation is the most important algorithm with GIGO (Garbage In Garbage Out) principle, it means the wrong input will result the wrong output too.
• Example:
– The name are consists of letter only.
– Address, email couldn’t consist with following signs @,#,%,$, and others.

Verification check the right input have been through needs or not.
For example of Input is: Address that shown on following: Jl. Nonsen No.123
• Input Valid (consists of letters, number and dot)
• Verification; check if Jl. Nonsen is available and no 123 is available too.

Positioning & Animation
Positioning is a process in making a various form in the screen with basic character like *, but could be shown as other form with position setting.



The Positioning is a basic of create animation. With change a position in each time, it makes the character like move around.

String manipulation
The String manipulation is a capability to set a form of data in order to make it suitable with the data requirement.

No comments: