CS1440 - Lab 5
More about Functions


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

Activity

Points

To Submit

Grade

Prelab

20

  • Program (printout preferred)
  • Written answers

Lab goals - Objective for today's lab

--

-

     -

Lab Activity 5-1
Preparations - Getting ready for the lab

--

-

     -

Lab Activity 5-2 - Void Functions
Using functions that do not return a value, void functions

    10

  • Program file ex51.C in your directory

    -

Lab Activity 5-3 - Functions that return more than one value (Call_by_reference)
Functions that return more than one value using means
other than the return statement

 10

  • Program file ex52.C in your directory

    -

Lab Activity 5-4-A Complex Program with Multiple Function Calls
A good program to learn almost everything about functions.

--

-

     -

Lab Activity 5-5 - Design of a Program
Steps for designing the program

--

-

    - 

Lab Activity 5-6 - Implementation

     10

  • Program file driver.C in your directory

    -

Lab Activity 5-7 - Algorithm

 

 

   -

Post Lab

50

  • Program listing for draw.C and file draw.C in your 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 every where.