BuiltWithNOF
Week 7

Functions

Topics

  • Math libraries
  • rand()
  • Parameters
  • Function Prototypes

At the end of the week you should be able to:

  • Call functions from the math library.
  • Know how to pass data to a function using parameters
  • Know how to create a function prototype for a function
  • Write a function that takes three integer parameters and returns the sum of the numbers
  • Write a function that takes a single double precision floating point number and prints the number, its square, and its cube, to 5 decimal places.

Reading Assignment

    Savitch:
    Section 4.4 - 4.5, Pages 200-227 (More about functions)[7th 204 - 229] [6th 202-227]
    Section 5.1 - 5.4, Pages 248 - 283 [ 7th 252-286][6th 248-282]

    Pirsig:
    Pages 246-259 (Stuckness) [Harper 351-370]

Take-Home Programming Assignment

Reading Assignment

    Internet:
    WWW.GRAPHICSMAGICIAN.COM

[Home] [About Me] [Office Hours] [CIS 098] [CIS 110] [CIS 114] [CIS 121] [Online Video] [Books] [Week 1] [Week 2] [Week 3] [Week 4] [Week 5] [Week 6] [Week 7] [Week 8] [Week 9] [Week 10] [Week 11] [Week 12] [Week 13] [Week 14] [Week 15] [Week 16] [CIS 123] [CIS 127] [CIS 170] [CIS 207] [CIS 226] [CIS 227] [CIS 230] [CIS 262] [COL 101]