Document Pt1420

Topics: Programming language, Mathematics, Source code Pages: 7 (1390 words) Published: August 5, 2013
Unit 9: Functions
Course Objectives Covered by this Unit
* CO8: Apply techniques to write functions in programs.

Unit Learning Outcomes
* LO32: Describe the usefulness of functions in computer programs. * LO33: Write functions using pseudocode/flowcharts.
* LO34: Differentiate between the various functions created for use in computer programs. * LO35: 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

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
Use the following keywords or phrases to search for additional materials to support your work: * 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

Learning Activities

THEORY PORTION

EXPLORE Activity 8: Research Assignment 1: Exploring How to Call External Program or Function from a Program Homework, Graded
Course Support Tools required for this activity:
* None

Description:
This is a research assignment in which students will explore the Internet and the ITT Tech Virtual Library and answer the following question: * In general, how do you call an external function or program that is written in different programming language? For instance, how would you call a Java program within a Visual Basic program or launch a PowerPoint presentation from a Visual Basic program? Submit assignment at the start of Unit 10.

Estimated Time: 5 minutes
Unit Learning Outcome attached to this activity: LO32 through LO35 Course Objective supported by this activity: CO8

APPLY Activity 1: Translating Programming Logic into Program Code I In-Class Activity, Ungraded
Course Support Tools required for this activity:
* None

Description:
The purpose of this activity is to demonstrate how to translate programming style with function statements into Visual Basic Console code.

Use the pseudocode in Figure 6-7 on page 226 and flowchart in Program 6-6 on page 227 of the textbook as an example.

Visual Basic Console implementation of the program example as follows:

Estimated Time: 20 minutes
Unit Learning Outcome attached to this activity: LO33, LO35
Course Objective supported by this activity: CO8

APPLY Activity 2: Translating Programming Logic into Program Code II In-Class Activity, Ungraded
Course Support Tools required for this activity:
* None

Description:
The purpose of this activity is to demonstrate how to create an input validation loop and implement it in Visual Basic Console code.

Use the flowchart in Figure 7-1 on page 259 and pseudocode in Program 7-2 on pages 260-261 of the textbook as an example. Visual Basic Console implementation of the program example as follows:

Estimated Time: 30 minutes
Unit Learning Outcome attached to this activity: LO33, LO35
Course Objective supported by this activity: CO8

PRACTICE Activity 2: Assignment 1: Homework
Homework, Graded
Course Support Tools required for this activity:
* None

Description:
Purpose of the homework assignment is to review the key concepts discussed in the class. In this assignment, students should answer: * Short Answer Review Question 1 on page 253
* Algorithm Workbench Review Questions 2 and 3 on page 253 * Programming Exercise 7 on page 255
* Short Answer Review Questions 1 and 2 on page 267
* Algorithm Workbench Review Questions 1 and 2 on page 267 * Programming Exercise 1 on page 268

Submit answers at the start of Unit 10.

Estimated Time: 5 minutes
Unit Learning Outcome attached to this...
Continue Reading

Please join StudyMode to read the full document

You May Also Find These Documents Helpful

  • Business Document Design and Development Research Paper
  • Essay on Bap23 Principles of Managing Information and Producing Documents
  • Principles of Managing Information and Producing Documents Essay
  • Essay about A Guide on Writing Quality Management System Documents
  • Unit 312 Design and produce documents in a business environment Essay
  • BSBADM506B
  • BSBADM506 Essay
  • Essay about Word Processor and Document

Become a StudyMode Member

Sign Up - It's Free