Notes 3.12 - 3.13 pt1

  • A procedure is a named group of programming instructions that may have parameters and return values.

  • Procedures can be reffered to as method or function depending on the programing language.

  • A procedrure call interrupts an execution of statements and makes the program execute the statements in the procedure.

  • Parameters are input values of a procedure.

  • Argurments specifcy the values of the parameters when a procedure is called.

  • If you have a set of statements and inside there is a procedure then when it reaches that procedure it will excute that procedure and then go back to the rest of the statments.

  • If you see a return statement you automatically end the procedure even if there is more statements