19.09.2015 Views

Prentice.Hall.Introduction.to.Java.Programming,.Brief.Version.9th.(2014).[sharethefiles.com]

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Programming</strong> Exercises 591<br />

}<br />

protected AbstractDrawFunction () {<br />

drawFunction();<br />

}<br />

/** Return the y-coordinate */<br />

abstract double f(double x);<br />

/** Obtain points for x-coordinates 100, 101, . . ., 300 */<br />

public void drawFunction() {<br />

for (int x = -100; x

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!