Document Pt1420 Essay

1391 Words6 Pages
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,…show more content…
* Pass the number to a function called addTen() that will return the number with 10 added to it. * Display the number with 10 added to it. * Ask the user to enter another number. * Display the square root and square of the number. Complete Lab 9.1: Functions in Pseudocode and Visual Basic from the lab manual and submit the following for this lab: * The workable pseudocode of a function called addTen() in Step 1 * The workable Visual Basic code to call function addTen() in Step 2 * The workable Visual Basic code of the main() module in Step 3 * The workable Visual Basic code of addTen() function in Step 4 * The workable Visual Basic code of number = number + 10 in Step 5 * The workable Visual Basic code of a return statement in Step 6 * The workable completed Visual Basic code in Step 7 * A workable sample of program output by Visual Basic Console in Step 7 * The workable Visual Basic code in Step 8 * The workable Visual Basic code in Step 9 * The workable Visual Basic code in Step 10 * The workable Visual Basic code in Step 11 * The workable Visual Basic code in Step 12 * The

More about Document Pt1420 Essay

Open Document