Bryn Mawr College
CMSC 206: Data Structures
Sprong 2015
Instructor: Deepak Kumar

Assignment#2

Due on Wednesday, February 4, 2015

Title: Computing primes

Assignment 2 (Due in class on Wednesday, February 4): 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