CSU Banner

CS 163/164, Fall 2016

Lab 17 - Practicing Recursion

Mon-Wed, Nov. 7-9, 2016


Objectives of this Lab

  1. To practice using recursion to implement several methods, and
  2. to make some pictures of a Sierpinski triangle.

Description

Follow the steps exactly in their order:

  1. Make an Eclipse project named R17.
  2. Download Recursion.java, Triangle.java and UserInterface.java to your project.
  3. Implement the computeFactorial() method, as follows:
  4. Implement the geometricSeries() method, as follows:
  5. Implement the sierpinski() method, as follows:
  6. Use the main method in Recursion.java to test all of your code.

Grading Criteria


Submit your Recursion.java source file to the Checkin tab. Automated grading will be running.


CS Banner
CS Building