Algorithms and OOD (CSC 207 2014S) : EBoards

CSC207.01 2014S, Class 12: Exceptional Programming


Overview

Preliminaries

Admin

Upcoming Work

Questions

A Quick Recap

Lab

How do I test the quadratic root?

Make some quadratics whose roots you know. For example (x-3)(x+2) = x^2-x-6. The smaller root is -2.

What does assertEquals look like for doubles?

public static void assertEquals(java.lang.String message,
                                double expected,
                                double actual,
                                double delta)

How do I make an inputstreamreader?

BufferedReader eyes =
    new BufferedReader(new InputStreamReader(System.in));

How do I convert a string to a double?

double d = Double.parseDouble(str);

Recent technical interview question

Copyright (c) 2013-14 Samuel A. Rebelsky.

Creative Commons License

This work is licensed under a Creative Commons Attribution 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by/3.0/ or send a letter to Creative Commons, 543 Howard Street, 5th Floor, San Francisco, California, 94105, USA.