CS1440 - Lab 4
Functions I

 

Name:                                             User ID:                                                  Date:
Lab Section:                                  Lecture Section:
 

 

Activity

Points

To Submit

Grade

Prelab

10

  • Reading assignment
  • Indications of items on given program listing

 

Lab Activity 4-1
Goals and preparations

 

 

 

Lab Activity 4-2
Using predefined functions

15

  • Predefined.C program listing

 

Lab Activity 4-3
Type changing functions

10

  • changing.C  in your directory

 

Lab Activity 4-4
Functions that return a value
Remarks

10

  • P44.C  in your directory

 

Lab Activity 4-5
Scope of a variable

5

  • scope.C  in your directory

 

Post Lab

50

  • mpg.C  program listing and file in directory
  • clothes.C  program listing and file in directory.

 

 

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) prototyped and called correctly everywhere.