Introduction to Programming

OIM3600
OIM3600

Implementation Details

OIM3600
OIM3600
OIM3600
OIM3600
OIM3600
OIM3600
OIM3600

Psuedocode

OIM3600
  1. Pick up dictionary
  2. Open to middle of dictionary
  3. Look at page
  4. If word is on page
  5.     Read word definition
  6. Else if word is earlier in dictionary
  7.     Open to middle of left half of dictionary
  8.     Go back to line 3
  9. Else if word is later in dictionary
  10.     Open to middle of right half of dictionary
  11.     Go back to line 3
  12. Else
  13.     Quit
OIM3600
  1. Pick up dictionary
  2. Open to middle of dictionary
  3. Look at page
  4. If word is on page
  5.     Read word definition
  6. Else if word is earlier in dictionary
  7.     Open to middle of left half of dictionary
  8.     Go back to line 3
  9. Else if word is later in dictionary
  10.     Open to middle of right half of dictionary
  11.     Go back to line 3
  12. Else
  13.     Quit
OIM3600
  1. Pick up dictionary
  2. Open to middle of dictionary
  3. Look at page
  4. If word is on page
  5.     Read word definition
  6. Else if word is earlier in dictionary
  7.     Open to middle of left half of dictionary
  8.     Go back to line 3
  9. Else if word is later in dictionary
  10.     Open to middle of right half of dictionary
  11.     Go back to line 3
  12. Else
  13.     Quit
OIM3600
  1. Pick up dictionary
  2. Open to middle of dictionary
  3. Look at page
  4. If word is on page
  5.     Read word definition
  6. Else if word is earlier in dictionary
  7.     Open to middle of left half of dictionary
  8.     Go back to line 3
  9. Else if word is later in dictionary
  10.     Open to middle of right half of dictionary
  11.     Go back to line 3
  12. Else
  13.     Quit
OIM3600
  1. Pick up dictionary
  2. Open to middle of dictionary
  3. Look at page
  4. If word is on page
  5.     Read word definition
  6. Else if word is earlier in dictionary
  7.     Open to middle of left half of dictionary
  8.     Go back to line 3
  9. Else if word is later in dictionary
  10.     Open to middle of right half of dictionary
  11.     Go back to line 3
  12. Else
  13.     Quit
OIM3600
  • Functions
    • arguments, return values
  • Conditionals
  • Boolean expressions
  • Loops
  • Variables
OIM3600

0111111101000101010011000100011000000010000000010000000100000000000000000000000000000000000000000000000000000000000000000000000000000001000000000011111000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010100000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000001000000000000000000101000000000000000010000000001010101010010001000100111100101010010001000001111101100000100000011000111000000100010011100011101001000101111100000000000000000000000000000000000000000000000000000000000000000101100000000000011101000000000000000000000000000000000000100100010111111000000000000000000000000000000000000000000000000000000000000000001001000...0111111101000101010011000100011000000010000000010000000100000000000000000000000000000000000000000000000000000000000000000000000000000011000000000011111000000000000000010000000000000000000000001100000000001111000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000101000001100100000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000011100000000000000001110000000001000000000000000001110000000000000110010000000000000001000000000000000000000000000001010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000101110000100101000000000000000000000000000000000000000000000000...0010111101101100011010010110001001100011001011100111001101101111001011100011011000100000001011110111010101110011011100100010111101101100011010010110001000101111011110000011100000110110010111110011011000110100001011010110110001101001011011100111010101111000001011010110011101101110011101010010111101101100011010010110001001100011010111110110111001101111011011100111001101101000011000010111001001100101011001000010111001100001001000000010000001000001010100110101111101001110010001010100010101000100010001010100010000100000001010000010000000101111011011000110100101100010001011110111100000111000001101100101111100110110001101000010110101101100011010010110111001110101011110000010110101100111011011100111010100101111011011000110010000101101011011000110100101101110011101010111100000101101011110000011100000110110001011010011011000110100

OIM3600
#include <stdio.h>

int main(void)
{
    printf("hello, world\n");
}

OIM3600
print('hello, world!')
OIM3600
OIM3600
OIM3600