![]() |
School of Engineering and
Applied
Science
Department of Computer Science CSci 53 -- Introduction to Software Development http://www.seas.gwu.edu/~csci53/fall04 Prof. Michael B. Feldman mfeldman@gwu.edu |
| Miles | Hours | Reason | Expected Result | Brief description of actual result |
| 5 | 0 | zero denominator | we hope we get something indicating that we can't divide by 0 | |
| 50 | -3 | negative hours | hours is bogus (shouldn't be negative), so let's see what happens | |
| 0 | 5 | zero numerator | no problem - result should be 0 | |
| -15 | -5 | both values negative | hmmm - 2 bogus inputs will give a proper output? | |
| 250 | 5 | typical | 50 | |
| 250.7 | 4.5 | decimal values | the program expects integers; what will happen? | |
| xyz | 5 | letters - bad value | we hope we get something indicating this |
| Miles | Hours | Reason | Expected Result | Actual Result |
|
|
|
|
|
|
| Old code | Old output | New Code | New output |
|
|
|
|
|
(end of lab)