CS 100 INTRO COMPUTING USING MATLAB Cornell

Find below a list of sample documents for Cornell CS 100 course.
 

Cornell CS 100 documents:

  • Cornell CS
    import import import import import import import import import java.awt.*; java.awt.image.*; java.util.*; java.io.*; java.net.*; java.awt.event.*; javax.swing.*; javax.swing.event.*; java.awt.image.*; /* An instance is a JFrame that contains an ima
  • Cornell CS
    /* Contains static methods for sorting, together with the methods that they use. Included are: min, to find the minimum of b[h.k]. insertValue, to insert a value into its sorted position in b[h.k-1]. linearSearch, to find a value in an array. medianO
  • Cornell CS
    import junit.framework.TestCase; /* Contains methods to test methods of class WuerfelSpiel. */ public class WurfelSpielTester extends TestCase { /* * Test throwDie. Do this by calling it 200 times and making sure: (1) Each value returned is in the ra
  • Cornell CS
    for (int k= j;k<n;k+) b[k]=b[k+1]
  • Cornell CS
    / Time Spent: 6 hours import java.awt.*; import java.awt.Color; /* Assignment A5 */ public class A5 extends Turtle { private double radius, vx, vy; /* Constructor: a black turtle starting at the middle of the panel with angle 0 (looking east). East (
  • Cornell CS
    public class Rhino { /* Name of Rhino */ private String name; /* Gender of Rhino, \'M\' for male and\'F\' for female */ private char gender; /* Month of birth of Rhino */ private int MOB; /* Year of birth of Rhino */ private int YOB; /* Tag number of Rhi
  • Cornell CS
    /* An instance represents a CMYK value */ public class CMYK { /* Color cyan. 0 c 1. */ public double c; /* Color magenta. 0 m 1. */ public double m; /* Color yellow. 0 y 1. */ public double y; /* Color black. 0 c 1. */ public double k; /* Con
  • Cornell CS
    import javax.swing.*; import java.awt.*; public class GUI extends JFrame { box box; public GUI(int n){ super(\"quest 2\"); container cp= getContainer(); } }
  • Cornell CS
    import java.util.*; /* Program for Lab: Timing execution */ public class TestArrays { /* Determine and print how long it takes to create a Date object. */ public static void times() { / Store in timeStart a Date with the time at which the statement i