PT1420

Introduction to Programming

Week 9 (August 8, 2016)
Unit 9: Functions

Learning Objective
  • Apply techniques to write functions in programs.
Learning Outcomes
  1. Describe the usefulness of functions in computer programs.
  2. Write functions using pseudocode/flowcharts.
  3. Differentiate between the various functions created for use in computer programs.
  4. 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:

Your browser is out-of-date!

You need to update your browser to view Foliotek correctly. Update my browser now

×