20 likes | 167 Views
Concept of a Program. From the label on a shampoo bottle 1. Wet hair 2. Pour shampoo to hand 3. Apply shampoo to hair 4. Work into a lather 5. Rinse thoroughly 6. Repeat step 2 to 5 until clean For a general program: starting point and terminating point a set of instructions
E N D
Concept of a Program From the label on a shampoo bottle • 1. Wet hair • 2. Pour shampoo to hand • 3. Apply shampoo to hair • 4. Work into a lather • 5. Rinse thoroughly • 6. Repeat step 2 to 5 until clean For a general program: • starting point and terminating point • a set of instructions • execute sequentially (one step after another)
Everyday Examples on Programming • Shampoo • Set a VCR to record a TV program • Open a can of tennis balls • How to use a pair of chopsticks Languages used • English-like language • Sequences of buttons pushing • Pictures or drawings • Multimedia (video, voice, text, graphs) • For scientific purpose, we have : • FORTRAN, pascal, C, LISP, and others