CS 1401, Quiz 8, MW version

Date: Monday, October 27, 2014
Name (please type legibly, ideally in block letters): ______________________________________________________________________

1. Mark what is covered (Y) and what is not covered (N) in the part of the book that you were supposed to read for this week:

2a. Write a method ratio that, given two real numbers a and b, returns their ratio a / b.
2b. Call your method in the main program for x = 1.0 and y = 2.0, and trace it step-by-step.
2c. Form a test suite for testing your method; briefly explain why you added these examples to your test suite.