HOME | Overview | Syllabus | Instructor | Lectures | Laboratories | Readings | Assignments | Resources | Other Links
CS 1711 Recitation Laboratory 7:
Loops [10/26/99; 10/28/99]

 

Objectives:

This laboratory builds on the basic Frog class that can be found at http://vip.cs.utsa.edu/classes/cs1713f99/robbins/labs/Frog.html that was used as the starting point for Laboratory 5.

Check-off procedure:

You must attend the recitation and sign in. This laboratory will be checked of using the new procedures.

Laboratory details:

This lab uses the Frog class developed in Lecture and modified in Laboratory 5. You will NOT be using simple.IO in this laboratory. This lab involves the programming of a variation of the frog problem. In Exercise I, you will add a method to the Frog class and test it. In Exercise II you will use a loop to have a Frog object hop multiple times. In Exercise III you will instantiate two Frogs and look at the similarity in their statistics. In Exercise IV, you will use a nested loop to perform multiple trials.

  • Exercise I: Adding a method to the Frog class.

  • Exercise II: Using a simple loop

  • Exercise III: Kermit and Kirby hopping together

  • Exercise IV: Doing more trials using a nested loop


    Last revision: October 19, 1999 at 9 am.