CS21 Week3 Thursday In-Class Exercises

  1. If you have not already done so, create a week3 subdirectory in your cs21 subdirectory, and from your week3 subdirectory, copy over my week3 files:
    % cd                # remember you can use ls and pwd to figure out where you are in the directory tree
    % cd cs21
    % mkdir week3
    % cd week3
    % pwd                # should list /home/yourusername/cs21/week3
    % cp ~newhall/public/cs21/week3/* .   
    
  2. we will start by looking at the StringTest.java class that we started last time. Here is the API documentation for the String Class

  3. Some other classes we will look at today:
    Random Class
    Math Class

  4. Open up the QuadraticSolver.java, and implement the TODO part using methods from the Math library.