Evan Anderson
PT1420
Introduction to Programming
Week 9 (August 8, 2016)
Unit 9: Functions
Learning Objective
- Apply techniques to write functions in programs.
Learning Outcomes
- Describe the usefulness of functions in computer programs.
- Write functions using pseudocode/flowcharts.
- Differentiate between the various functions created for use in computer programs.
- Write input validation loops and validation functions to check accuracy of input data.
Key Concepts
- Structures of functions
- Use the library functions
- Input validation loops and validation functions
Assigned Reading
- Gaddis, Chapter 6, “Functions,” pages 217-218 (through Library Functions) and 225-231 (through How to Use Functions).
- Gaddis, Chapter 7, “Input Validation”. .
Keywords
- Functions
- Modules
- Library functions
- Function header
- Function body
- Return statements
- Passing arguments by values
- Passing arguments by references
- Garbage-in-garbage-out (GIGO)
- Input validation
Assignments and Study Materials
- Unit 9 Lecture Slides
- Unit 9 Assignment 1: Homework
- Unit 9 Research Assignment 1: Exploring How to Call External Programs or Functions from a Program
- Unit 9 Lab Worksheet
- Unit 9 Lab 9.1: Functions in Pseudocode and Visual Basic
- Unit 9 Lab 9.2: Programming Challenge: Functions and Visual Basic
- Unit 9 Lab 9.3: Input Validation
- Unit 9 Lab 9.4: Programming Challenge: Cell Phone Minute Calculator
Questions and Feedback
Use the form below to ask questions or provide feedback about the concepts covered during Week 9's session of class: