E238 Languages 2008
Outline & Some Links
chaosb
Information Systems 12 (E238)
Languages — Computer Programming (25 hours)
1. Define:
  • machine code
  • assembler languages
  • procedural languages
  • fourth generation languages (4GL)
2. Define and compare:
  • interpreters
  • compilers
3. Apply:
  • sequence
  • selection
  • iteration
4. Apply modular principles and simple parameter-passing.

5. Apply data structures, including simple arrays and records.

6. Apply Pseudocode and Nassi-Shneiderman diagrams to solve simple problems.

7. Apply programming to solve simple problems.

Note: Students are expected to understand these principles common to languages in a variety of contexts, rather than to learn a specific language.
Bits and Pieces — Some Possible Links
Languages Check Digits
Easter — What was the date again? Last year? This year? Next year? In 10 years?

Other Bits and Pieces — Some Possible Links
Stubs (program stubs, procedure stubs, function stubs.)
  • A stub is a the smallest possible fragment of a program which has just the essential statements that are necessary for it to able to be called, and to return to the calling location without creating an error.
Procedures
  • aka modules, subprograms, program fragments, subroutines, functions)
    call procedure by name
IRR Interrupt Request Routine
  • recognise that an interrupt request has been received
  • stop current execution
  • push registers onto the stack
  • execute the interrupt
  • return to the last position before the IRR
  • restore the situation to as it was before the interrupt by pulling the values for the registers off the stack
  • resume program execution as if the interrupt had not occurred.
“Top Down” Development

During planning, work “top down”, that is,
  • do the most general things first;
  • fill in the most specific things last.
“Bottom up” development

This is what happens when you are writing the Pascal code, that is,
  • do the most specific things first (fill in the details)
  • then do the most general parts of the program last.
For example, you write the code for the procedures and functions before you write the code for the main program that calls the procedures or functions.

Pascal is said to be tightly structured or strongly structured, that is, the physical structure of a program always follows this order (as far as your course takes you!).
  • program heading
  • constant declarations
  • type declarations
  • variable declarations
  • functions
  • procedures
  • main program
Procedures must be early in the program, so that the main program that calls them, knows where it is when it needs to call it.
| Computing | Information Systems | Interactive Media |
Contents 1998-2019 LXR Modified 5 January 2019