Calling Procedures:
What is a procedure?
A procedure is a named group of code that has paramaters and return values. Procedures are known as methods or functions depending on the language.
A procedure executes the statements within it on hte parameters to provide a return value.
What are parameters?
Paramaters are input values of a procedure that are specified by arguments.
Arguments specify the values of the parameters when a procedure is called.
Procedures are used to create algorthims that can perform certain actions or return values. When a procedure returns a value, theis information must be stored in a variable for later use. Some procedures like the move the
By creating theses algorithms the readibility of code increases and the complexity decreases. This is becasue a function's name can tell the reader what action it will perform, and by calling it, the code becomes more clean and easy to understand.