Paper

Cards (11)

  • Variables
    Data accessed by meaningful identifiers, used for data storage
  • Constants
    Store values that won't change during execution
  • Procedures
    Collection of programming statements under single identifier, allow modular programs to be created/allow procedures to be reused, make program creation faster, make programs shorter, easier to update/add functionality
  • Parameters
    Pass values from main program to procedure, so they can be used in procedure, allow procedure to be reused with different data
  • Comments
    Know purpose of code section
  • Storing data in file
    Data stored permanently, data can be moved to another computer, backup copy/accessed elsewhere
  • ph0001 as primary key

    Easy to validate, always unique
  • Making algorithm easier to understand/maintain
    • Comments, procedures/function, use white space
  • Local variables
    Scope is defined block of code, value can't be changed elsewhere in program
  • Global variables
    Scope is whole program, value can be changed elsewhere in program
  • what happens if invalid char in algorithm?

    1. alg wouldnt stop - cant find item it seek
    2) array run out of values after pointer reach 13 -> alg crash