MIS 304 Lecture Notes - Lecture 9: Structure Chart, Code Reuse, Local Variable

37 views2 pages

Document Summary

Function: a group of statements that exist within a program for the purpose of performing a specific task. If a function doesn"t return anything, you must have a print statement. A function that does not receive any arguments and does not return any values. A function that does not receive any arguments but returns value(s) A function that receives arguments but does not return any values. A function that receives arguments and returns value(s) Modularized program: a program that has been written with each task in its own function. Defining a function specifies what it does. We must call a function to execute it. Hierarchy chart (structure chart): shows boxes that represent each function in a program. Local variable: assigning a value to a variable inside a function. Only statements inside that function can access the variable. An error will occur if a statement in one function tries to access a local variable that belongs to another program.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents