Bryn Mawr College
CMSC 206: Data Structures
Fall 2014
Instructor: Deepak Kumar

Assignment#2

Due on Tuesday, September 16, 2014

Title: Computing primes

Assignment 2 (Due in class on Tuesday, September 16): Write a Java program to print out all the prime numbers between 1 and 100.

Hint: You will need to write a function isPrime() to tell you if a number is prime or not.

What to Hand-in:

1. A print out of your Java program along with its output.
2. Write a short reflection on your experiences with this assignment.
3. Staple all of these together and hand them in at the start if the class on the due date.

Back to CS206 Course Materials