CS100 Programming Assignment Solutions
This page contains links to the solutions of the programming assignments.
Assignment Solutions
Programming Assignment 1:
Program 1.A : Draws a logarithmic spiral with variable color.
Program 1.B : Computes pi.
Program 1.C : Roots of random quadratics.
You can find some cool spiral that
you
came up with
here.
Programming Assignment 2:
Program 2.A : Draws a lattice.
Program 2.B : Draws a pair of n-stars.
Program 2.C : Explores the area of unit n-stars.
Program 2.D : Random Chords.
Programming Assignment 3:
Program 3.A - Driver.java : The main() method that prints the results.
Program 3.B - Ellipse.java : Creates the functionality we need for ellipses.
Programming Assignment 4:
Program 4.A1 : Main class for A.
Program 4.A2 : Extension to Frame for A.
Program 4.B : Main class for B.
Program 4.C1 : Main class for C.
Program 4.C2 : Extension to Frame for C.
Program 4.D : Main class for D.
Program 4.Extra1 : ArrayOps class.
Program 4.Extra2 : Point class.
Program 4.Extra3 : LineSegment class.
Program 4.Extra4 : Displayable abstract class.
Program 4.Extra5 : Drawing class.
Grading Guide for P4.
Programming Assignment 5:
Program 5.A : Illustrates various computations that involve polynomials.
Program 5.B : Plots the 9th Chebychev polynomial.
Program 5.C : Benchmarks various methods for computing a DFT array.
Programming Assignment 6:
Program 6.A
Program 6.B
Program 6.C
Program 6.D
If you have any questions, contact your friendly Consultant in Carpenter Hall!
Return to CS100 Homepage
If you have any questions or comments about this page, please contact me:
kyparlis@cs.cornell.edu
Latest update: 09/12/1997