CS1440 - Lab 4
Various Kinds of Functions
Name:                                    Date:
Section:                                  User ID:
 
Activity
Points
Exercise
Grade
Prelab
10
Reading Assignment and an
Turn in at start of lab.
 
Lab goals - Objective for today's lab
--
-
 
Lab Activity 4-1
Preparations - Getting ready for the lab
--
Complete Exercise ex41
 
Lab Activity 4-2 - Predefined Functions
A function that computes the x to the power of y.
Solving quadratic equation again.
    10
    10
    10
    10
Complete Exercise ex41
Complete Exercise ex42
Complete Exercise ex43
Complete Exercise ex44
 
Lab Activity 4-3
Round up and Round down Functions
 10
Complete Exercise ex45  
Lab Activity 4-4
Type Changing Functions - Type Casting
--
 
Lab Activity 4-5 - Functions that return a value
Remarks
Procedural Abstraction and Parameter Ordering
Scope of a variable
10
10
Complete Exercise ex46
Complete Exercise ex47
 
Lab Activity 4-6 - Function Overloading
Post Lab
20
Complete by next lab.  
Student's Remarks:
 
 
 

 

Professor's Remarks:
 
 
 

 

** REMEMBER: A good working function should have: 1) a name, 2) type, 3) correct parameter (s), 4) correct return statement, and 5) declared and called correctly every where.