Computer Science 252
Problem Solving with Java

Spring 2014, The College of Saint Rose

Lecture 16: Recursion
Date: Tuesday, March 18, 2014


Agenda

Lecture 16 Assignment

Due at the start of class, Thursday, March 20.

Please submit answers to these questions in Submission Box under "LA16" or in hard copy by the start of our next class. We will discuss these questions at the start of class, so no late submissions are accepted. Please be sure that your name is clearly indicated in all submissions.

Write a Java application called Factorial.java, much like the Powers example that reads in a positive integer, then computes the factorial of that number, first using a method with a while or for loop, then with a recursive method. (6 points)

Examples