CS105      Lab 6 - User Defined Functions

Objectives:

  1. Before starting this lab you should have read Chapter 6 in your text.
     
  2. Section 6.1 in your text describes the need to sometimes write your own functions when the built-in functions are insufficient for the task.  This is illustrated with trying to get a ball to roll realistically as described on pp174-180 of your text.  Try that code out yourself.
     

  3.  
    Assignment:
    Implement code Pyramid Climb described on p203 #4.


     

  4. On pp 181-189 of your text you are given an example of writing a boolean function (one that returns true or false) used to play a simple guessing game.  Follow the instructions for creating this game.

     

  5.  

    Assignment:
    Implement the Spanish Vocabulary code as described on p205 #11.

     

     

  6. Send your worlds to me in GoucherLearn.