BuiltWithNOF
CIS-123 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

    Hanly:
    Chapter 5, Sections 5.3 - 5.8 (you can skip 5.6), Pages 172-210 (More about functions)

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

Reading Assignment

    Internet:
    WWW.GRAPHICSMAGICIAN.COM

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