Bryn Mawr College
CMSC 206: Data Structures
Fall 2015
Instructor: David Cooper

Assignment#2

Due on Thursday, Sept 17, 2015

Title: Computing primes

Assignment 2 (Due before class by Thursday, September 17): 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. Your Java program (.java and .class files)
  2. A text file with the output of running your program.
  3. Write a short reflection on your experiences with this assignment.
Zip all of these together and submit them to Moodle before the start of the class on the due date.

Back to CS206 Course Materials