ðHgeocities.com/csit101/Lecture13/Page5.htmlgeocities.com/csit101/Lecture13/Page5.htmlelayedx—ŽÕJÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÈÀç‹›OKtext/html€'9n›ÿÿÿÿb‰.HSun, 28 Nov 1999 23:57:16 GMTfMozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)en, *–ŽÕJ› Step 3 -  Program Code

Step 3 -  Program Code

   

Step 3, program code, is the actual writing of the program, using a programming language.

  1. Writing the program is called coding.
  2. The programmer translates the logic of the pseudocode, developed in the step 2- program design, into actual program code using programming language syntax.
  3. The program code should be written on paper first and then typed into the computer.

  

  

TASK 1-DEFINE PROGRAM LOGIC, What are the qualities of a good program?

  1. It should be reliable and work under most conditions (robust).
  2. It should catch obvious and common input errors.
  3. It should be well documented.
  4. It should be understandable by programmers or others.
  5. It should use logic structures described in step 3, program design.

  

  

TASK 2- SELECTING A PROGRAM LANGUAGE, Which language should be used?

  1. Hundreds of programming languages can be used to write the program statements.
  2. Some of the more popular ones for microcomputers are BASIC, C and Java.
  3. Language is usually chosen by the programmer or dictated by company policy.

  

  

TASK 3- CODE OR WRITE THE PROGRAM, What is the procedure?

  1. Code should first be handwritten on paper or coding sheets.
  2. Code would follow the syntax of the chosen programming language.
  3. Code would then be entered into the computer.
  4. Example:


  

  

 <  Previous Page                                         Next Page >